Code Monkey home page Code Monkey logo

Comments (42)

jeroen avatar jeroen commented on August 18, 2024

Ugh. Thanks for reporting.

from curl.

jeroen avatar jeroen commented on August 18, 2024

I can't reproduce this. How are you installing? From CRAN?

from curl.

jeroen avatar jeroen commented on August 18, 2024

What do you see if you run this line:

echo '#include <curl/curl.h>' | cc -E -xc - | grep "^[ \t]*CURLOPT_.*," | sed s/,//

from curl.

beew avatar beew commented on August 18, 2024

Hi, I installed from CRAN with install.packages() and updated with update.packages().

~$ echo '#include <curl/curl.h>' | cc -E -xc - | grep "^[ \t]*CURLOPT_.*," | sed s/,//
  CURLOPT_WRITEDATA = 10000 + 1
  CURLOPT_URL = 10000 + 2
  CURLOPT_PORT = 0 + 3
  CURLOPT_PROXY = 10000 + 4
  CURLOPT_USERPWD = 10000 + 5
  CURLOPT_PROXYUSERPWD = 10000 + 6
  CURLOPT_RANGE = 10000 + 7
  CURLOPT_READDATA = 10000 + 9
  CURLOPT_ERRORBUFFER = 10000 + 10
  CURLOPT_WRITEFUNCTION = 20000 + 11
  CURLOPT_READFUNCTION = 20000 + 12
  CURLOPT_TIMEOUT = 0 + 13
  CURLOPT_INFILESIZE = 0 + 14
  CURLOPT_POSTFIELDS = 10000 + 15
  CURLOPT_REFERER = 10000 + 16
  CURLOPT_FTPPORT = 10000 + 17
  CURLOPT_USERAGENT = 10000 + 18
  CURLOPT_LOW_SPEED_LIMIT = 0 + 19
  CURLOPT_LOW_SPEED_TIME = 0 + 20
  CURLOPT_RESUME_FROM = 0 + 21
  CURLOPT_COOKIE = 10000 + 22
  CURLOPT_HTTPHEADER = 10000 + 23
  CURLOPT_HTTPPOST = 10000 + 24
  CURLOPT_SSLCERT = 10000 + 25
  CURLOPT_KEYPASSWD = 10000 + 26
  CURLOPT_CRLF = 0 + 27
  CURLOPT_QUOTE = 10000 + 28
  CURLOPT_HEADERDATA = 10000 + 29
  CURLOPT_COOKIEFILE = 10000 + 31
  CURLOPT_SSLVERSION = 0 + 32
  CURLOPT_TIMECONDITION = 0 + 33
  CURLOPT_TIMEVALUE = 0 + 34
  CURLOPT_CUSTOMREQUEST = 10000 + 36
  CURLOPT_STDERR = 10000 + 37
  CURLOPT_POSTQUOTE = 10000 + 39
  CURLOPT_OBSOLETE40 = 10000 + 40
  CURLOPT_VERBOSE = 0 + 41
  CURLOPT_HEADER = 0 + 42
  CURLOPT_NOPROGRESS = 0 + 43
  CURLOPT_NOBODY = 0 + 44
  CURLOPT_FAILONERROR = 0 + 45
  CURLOPT_UPLOAD = 0 + 46
  CURLOPT_POST = 0 + 47
  CURLOPT_DIRLISTONLY = 0 + 48
  CURLOPT_APPEND = 0 + 50
  CURLOPT_NETRC = 0 + 51
  CURLOPT_FOLLOWLOCATION = 0 + 52
  CURLOPT_TRANSFERTEXT = 0 + 53
  CURLOPT_PUT = 0 + 54
  CURLOPT_PROGRESSFUNCTION = 20000 + 56
  CURLOPT_PROGRESSDATA = 10000 + 57
  CURLOPT_AUTOREFERER = 0 + 58
  CURLOPT_PROXYPORT = 0 + 59
  CURLOPT_POSTFIELDSIZE = 0 + 60
  CURLOPT_HTTPPROXYTUNNEL = 0 + 61
  CURLOPT_INTERFACE = 10000 + 62
  CURLOPT_KRBLEVEL = 10000 + 63
  CURLOPT_SSL_VERIFYPEER = 0 + 64
  CURLOPT_CAINFO = 10000 + 65
  CURLOPT_MAXREDIRS = 0 + 68
  CURLOPT_FILETIME = 0 + 69
  CURLOPT_TELNETOPTIONS = 10000 + 70
  CURLOPT_MAXCONNECTS = 0 + 71
  CURLOPT_OBSOLETE72 = 0 + 72
  CURLOPT_FRESH_CONNECT = 0 + 74
  CURLOPT_FORBID_REUSE = 0 + 75
  CURLOPT_RANDOM_FILE = 10000 + 76
  CURLOPT_EGDSOCKET = 10000 + 77
  CURLOPT_CONNECTTIMEOUT = 0 + 78
  CURLOPT_HEADERFUNCTION = 20000 + 79
  CURLOPT_HTTPGET = 0 + 80
  CURLOPT_SSL_VERIFYHOST = 0 + 81
  CURLOPT_COOKIEJAR = 10000 + 82
  CURLOPT_SSL_CIPHER_LIST = 10000 + 83
  CURLOPT_HTTP_VERSION = 0 + 84
  CURLOPT_FTP_USE_EPSV = 0 + 85
  CURLOPT_SSLCERTTYPE = 10000 + 86
  CURLOPT_SSLKEY = 10000 + 87
  CURLOPT_SSLKEYTYPE = 10000 + 88
  CURLOPT_SSLENGINE = 10000 + 89
  CURLOPT_SSLENGINE_DEFAULT = 0 + 90
  CURLOPT_DNS_USE_GLOBAL_CACHE = 0 + 91
  CURLOPT_DNS_CACHE_TIMEOUT = 0 + 92
  CURLOPT_PREQUOTE = 10000 + 93
  CURLOPT_DEBUGFUNCTION = 20000 + 94
  CURLOPT_DEBUGDATA = 10000 + 95
  CURLOPT_COOKIESESSION = 0 + 96
  CURLOPT_CAPATH = 10000 + 97
  CURLOPT_BUFFERSIZE = 0 + 98
  CURLOPT_NOSIGNAL = 0 + 99
  CURLOPT_SHARE = 10000 + 100
  CURLOPT_PROXYTYPE = 0 + 101
  CURLOPT_ACCEPT_ENCODING = 10000 + 102
  CURLOPT_PRIVATE = 10000 + 103
  CURLOPT_HTTP200ALIASES = 10000 + 104
  CURLOPT_UNRESTRICTED_AUTH = 0 + 105
  CURLOPT_FTP_USE_EPRT = 0 + 106
  CURLOPT_HTTPAUTH = 0 + 107
  CURLOPT_SSL_CTX_FUNCTION = 20000 + 108
  CURLOPT_SSL_CTX_DATA = 10000 + 109
  CURLOPT_FTP_CREATE_MISSING_DIRS = 0 + 110
  CURLOPT_PROXYAUTH = 0 + 111
  CURLOPT_FTP_RESPONSE_TIMEOUT = 0 + 112
  CURLOPT_IPRESOLVE = 0 + 113
  CURLOPT_MAXFILESIZE = 0 + 114
  CURLOPT_INFILESIZE_LARGE = 30000 + 115
  CURLOPT_RESUME_FROM_LARGE = 30000 + 116
  CURLOPT_MAXFILESIZE_LARGE = 30000 + 117
  CURLOPT_NETRC_FILE = 10000 + 118
  CURLOPT_USE_SSL = 0 + 119
  CURLOPT_POSTFIELDSIZE_LARGE = 30000 + 120
  CURLOPT_TCP_NODELAY = 0 + 121
  CURLOPT_FTPSSLAUTH = 0 + 129
  CURLOPT_IOCTLFUNCTION = 20000 + 130
  CURLOPT_IOCTLDATA = 10000 + 131
  CURLOPT_FTP_ACCOUNT = 10000 + 134
  CURLOPT_COOKIELIST = 10000 + 135
  CURLOPT_IGNORE_CONTENT_LENGTH = 0 + 136
  CURLOPT_FTP_SKIP_PASV_IP = 0 + 137
  CURLOPT_FTP_FILEMETHOD = 0 + 138
  CURLOPT_LOCALPORT = 0 + 139
  CURLOPT_LOCALPORTRANGE = 0 + 140
  CURLOPT_CONNECT_ONLY = 0 + 141
  CURLOPT_CONV_FROM_NETWORK_FUNCTION = 20000 + 142
  CURLOPT_CONV_TO_NETWORK_FUNCTION = 20000 + 143
  CURLOPT_CONV_FROM_UTF8_FUNCTION = 20000 + 144
  CURLOPT_MAX_SEND_SPEED_LARGE = 30000 + 145
  CURLOPT_MAX_RECV_SPEED_LARGE = 30000 + 146
  CURLOPT_FTP_ALTERNATIVE_TO_USER = 10000 + 147
  CURLOPT_SOCKOPTFUNCTION = 20000 + 148
  CURLOPT_SOCKOPTDATA = 10000 + 149
  CURLOPT_SSL_SESSIONID_CACHE = 0 + 150
  CURLOPT_SSH_AUTH_TYPES = 0 + 151
  CURLOPT_SSH_PUBLIC_KEYFILE = 10000 + 152
  CURLOPT_SSH_PRIVATE_KEYFILE = 10000 + 153
  CURLOPT_FTP_SSL_CCC = 0 + 154
  CURLOPT_TIMEOUT_MS = 0 + 155
  CURLOPT_CONNECTTIMEOUT_MS = 0 + 156
  CURLOPT_HTTP_TRANSFER_DECODING = 0 + 157
  CURLOPT_HTTP_CONTENT_DECODING = 0 + 158
  CURLOPT_NEW_FILE_PERMS = 0 + 159
  CURLOPT_NEW_DIRECTORY_PERMS = 0 + 160
  CURLOPT_POSTREDIR = 0 + 161
  CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 = 10000 + 162
  CURLOPT_OPENSOCKETFUNCTION = 20000 + 163
  CURLOPT_OPENSOCKETDATA = 10000 + 164
  CURLOPT_COPYPOSTFIELDS = 10000 + 165
  CURLOPT_PROXY_TRANSFER_MODE = 0 + 166
  CURLOPT_SEEKFUNCTION = 20000 + 167
  CURLOPT_SEEKDATA = 10000 + 168
  CURLOPT_CRLFILE = 10000 + 169
  CURLOPT_ISSUERCERT = 10000 + 170
  CURLOPT_ADDRESS_SCOPE = 0 + 171
  CURLOPT_CERTINFO = 0 + 172
  CURLOPT_USERNAME = 10000 + 173
  CURLOPT_PASSWORD = 10000 + 174
  CURLOPT_PROXYUSERNAME = 10000 + 175
  CURLOPT_PROXYPASSWORD = 10000 + 176
  CURLOPT_NOPROXY = 10000 + 177
  CURLOPT_TFTP_BLKSIZE = 0 + 178
  CURLOPT_SOCKS5_GSSAPI_SERVICE = 10000 + 179
  CURLOPT_SOCKS5_GSSAPI_NEC = 0 + 180
  CURLOPT_PROTOCOLS = 0 + 181
  CURLOPT_REDIR_PROTOCOLS = 0 + 182
  CURLOPT_SSH_KNOWNHOSTS = 10000 + 183
  CURLOPT_SSH_KEYFUNCTION = 20000 + 184
  CURLOPT_SSH_KEYDATA = 10000 + 185
  CURLOPT_MAIL_FROM = 10000 + 186
  CURLOPT_MAIL_RCPT = 10000 + 187
  CURLOPT_FTP_USE_PRET = 0 + 188
  CURLOPT_RTSP_REQUEST = 0 + 189
  CURLOPT_RTSP_SESSION_ID = 10000 + 190
  CURLOPT_RTSP_STREAM_URI = 10000 + 191
  CURLOPT_RTSP_TRANSPORT = 10000 + 192
  CURLOPT_RTSP_CLIENT_CSEQ = 0 + 193
  CURLOPT_RTSP_SERVER_CSEQ = 0 + 194
  CURLOPT_INTERLEAVEDATA = 10000 + 195
  CURLOPT_INTERLEAVEFUNCTION = 20000 + 196
  CURLOPT_WILDCARDMATCH = 0 + 197
  CURLOPT_CHUNK_BGN_FUNCTION = 20000 + 198
  CURLOPT_CHUNK_END_FUNCTION = 20000 + 199
  CURLOPT_FNMATCH_FUNCTION = 20000 + 200
  CURLOPT_CHUNK_DATA = 10000 + 201
  CURLOPT_FNMATCH_DATA = 10000 + 202
  CURLOPT_RESOLVE = 10000 + 203
  CURLOPT_TLSAUTH_USERNAME = 10000 + 204
  CURLOPT_TLSAUTH_PASSWORD = 10000 + 205
  CURLOPT_TLSAUTH_TYPE = 10000 + 206
  CURLOPT_TRANSFER_ENCODING = 0 + 207
  CURLOPT_CLOSESOCKETFUNCTION = 20000 + 208
  CURLOPT_CLOSESOCKETDATA = 10000 + 209
  CURLOPT_GSSAPI_DELEGATION = 0 + 210
  CURLOPT_DNS_SERVERS = 10000 + 211
  CURLOPT_ACCEPTTIMEOUT_MS = 0 + 212
  CURLOPT_TCP_KEEPALIVE = 0 + 213
  CURLOPT_TCP_KEEPIDLE = 0 + 214
  CURLOPT_TCP_KEEPINTVL = 0 + 215
  CURLOPT_SSL_OPTIONS = 0 + 216
  CURLOPT_MAIL_AUTH = 10000 + 217
  CURLOPT_SASL_IR = 0 + 218
  CURLOPT_XFERINFOFUNCTION = 20000 + 219
  CURLOPT_XOAUTH2_BEARER = 10000 + 220
  CURLOPT_DNS_INTERFACE = 10000 + 221
  CURLOPT_DNS_LOCAL_IP4 = 10000 + 222
  CURLOPT_DNS_LOCAL_IP6 = 10000 + 223
  CURLOPT_LOGIN_OPTIONS = 10000 + 224
  CURLOPT_SSL_ENABLE_NPN = 0 + 225
  CURLOPT_SSL_ENABLE_ALPN = 0 + 226
  CURLOPT_EXPECT_100_TIMEOUT_MS = 0 + 227
  CURLOPT_PROXYHEADER = 10000 + 228
  CURLOPT_HEADEROPT = 0 + 229

from curl.

jeroen avatar jeroen commented on August 18, 2024

That's so weird, everything looks fine. Where did you get R 3.2.2? Did you install from source?

Can you try to run the following:

R_HOME=$(R RHOME)
PKG_CFLAGS=${pkg-config --cflags libcurl}
CC=$(${R_HOME}/bin/R CMD config CC)
CFLAGS=$(${R_HOME}/bin/R CMD config CFLAGS)
CPPFLAGS=$(${R_HOME}/bin/R CMD config CPPFLAGS)

echo '#include <curl/curl.h>' | ${CC} ${CPPFLAGS} ${PKG_CFLAGS} ${CFLAGS} -E -xc - | grep "^[ \t]*CURLOPT_.*," | sed s/,// 

from curl.

beew avatar beew commented on August 18, 2024

Got R 3.2.2 from https://launchpad.net/~marutter/+archive/ubuntu/rrutter

I install packages system wide so start R with sudo to run install and update. Otherwise I use R as normal user if that is relevant.

echo '#include <curl/curl.h>' | ${CC} ${CPPFLAGS} ${PKG_CFLAGS} ${CFLAGS} -E -xc - | grep "^[ \t]*CURLOPT_.*," | sed s/,// 
  CURLOPT_WRITEDATA = 10000 + 1
  CURLOPT_URL = 10000 + 2
  CURLOPT_PORT = 0 + 3
  CURLOPT_PROXY = 10000 + 4
  CURLOPT_USERPWD = 10000 + 5
  CURLOPT_PROXYUSERPWD = 10000 + 6
  CURLOPT_RANGE = 10000 + 7
  CURLOPT_READDATA = 10000 + 9
  CURLOPT_ERRORBUFFER = 10000 + 10
  CURLOPT_WRITEFUNCTION = 20000 + 11
  CURLOPT_READFUNCTION = 20000 + 12
  CURLOPT_TIMEOUT = 0 + 13
  CURLOPT_INFILESIZE = 0 + 14
  CURLOPT_POSTFIELDS = 10000 + 15
  CURLOPT_REFERER = 10000 + 16
  CURLOPT_FTPPORT = 10000 + 17
  CURLOPT_USERAGENT = 10000 + 18
  CURLOPT_LOW_SPEED_LIMIT = 0 + 19
  CURLOPT_LOW_SPEED_TIME = 0 + 20
  CURLOPT_RESUME_FROM = 0 + 21
  CURLOPT_COOKIE = 10000 + 22
  CURLOPT_HTTPHEADER = 10000 + 23
  CURLOPT_HTTPPOST = 10000 + 24
  CURLOPT_SSLCERT = 10000 + 25
  CURLOPT_KEYPASSWD = 10000 + 26
  CURLOPT_CRLF = 0 + 27
  CURLOPT_QUOTE = 10000 + 28
  CURLOPT_HEADERDATA = 10000 + 29
  CURLOPT_COOKIEFILE = 10000 + 31
  CURLOPT_SSLVERSION = 0 + 32
  CURLOPT_TIMECONDITION = 0 + 33
  CURLOPT_TIMEVALUE = 0 + 34
  CURLOPT_CUSTOMREQUEST = 10000 + 36
  CURLOPT_STDERR = 10000 + 37
  CURLOPT_POSTQUOTE = 10000 + 39
  CURLOPT_OBSOLETE40 = 10000 + 40
  CURLOPT_VERBOSE = 0 + 41
  CURLOPT_HEADER = 0 + 42
  CURLOPT_NOPROGRESS = 0 + 43
  CURLOPT_NOBODY = 0 + 44
  CURLOPT_FAILONERROR = 0 + 45
  CURLOPT_UPLOAD = 0 + 46
  CURLOPT_POST = 0 + 47
  CURLOPT_DIRLISTONLY = 0 + 48
  CURLOPT_APPEND = 0 + 50
  CURLOPT_NETRC = 0 + 51
  CURLOPT_FOLLOWLOCATION = 0 + 52
  CURLOPT_TRANSFERTEXT = 0 + 53
  CURLOPT_PUT = 0 + 54
  CURLOPT_PROGRESSFUNCTION = 20000 + 56
  CURLOPT_PROGRESSDATA = 10000 + 57
  CURLOPT_AUTOREFERER = 0 + 58
  CURLOPT_PROXYPORT = 0 + 59
  CURLOPT_POSTFIELDSIZE = 0 + 60
  CURLOPT_HTTPPROXYTUNNEL = 0 + 61
  CURLOPT_INTERFACE = 10000 + 62
  CURLOPT_KRBLEVEL = 10000 + 63
  CURLOPT_SSL_VERIFYPEER = 0 + 64
  CURLOPT_CAINFO = 10000 + 65
  CURLOPT_MAXREDIRS = 0 + 68
  CURLOPT_FILETIME = 0 + 69
  CURLOPT_TELNETOPTIONS = 10000 + 70
  CURLOPT_MAXCONNECTS = 0 + 71
  CURLOPT_OBSOLETE72 = 0 + 72
  CURLOPT_FRESH_CONNECT = 0 + 74
  CURLOPT_FORBID_REUSE = 0 + 75
  CURLOPT_RANDOM_FILE = 10000 + 76
  CURLOPT_EGDSOCKET = 10000 + 77
  CURLOPT_CONNECTTIMEOUT = 0 + 78
  CURLOPT_HEADERFUNCTION = 20000 + 79
  CURLOPT_HTTPGET = 0 + 80
  CURLOPT_SSL_VERIFYHOST = 0 + 81
  CURLOPT_COOKIEJAR = 10000 + 82
  CURLOPT_SSL_CIPHER_LIST = 10000 + 83
  CURLOPT_HTTP_VERSION = 0 + 84
  CURLOPT_FTP_USE_EPSV = 0 + 85
  CURLOPT_SSLCERTTYPE = 10000 + 86
  CURLOPT_SSLKEY = 10000 + 87
  CURLOPT_SSLKEYTYPE = 10000 + 88
  CURLOPT_SSLENGINE = 10000 + 89
  CURLOPT_SSLENGINE_DEFAULT = 0 + 90
  CURLOPT_DNS_USE_GLOBAL_CACHE = 0 + 91
  CURLOPT_DNS_CACHE_TIMEOUT = 0 + 92
  CURLOPT_PREQUOTE = 10000 + 93
  CURLOPT_DEBUGFUNCTION = 20000 + 94
  CURLOPT_DEBUGDATA = 10000 + 95
  CURLOPT_COOKIESESSION = 0 + 96
  CURLOPT_CAPATH = 10000 + 97
  CURLOPT_BUFFERSIZE = 0 + 98
  CURLOPT_NOSIGNAL = 0 + 99
  CURLOPT_SHARE = 10000 + 100
  CURLOPT_PROXYTYPE = 0 + 101
  CURLOPT_ACCEPT_ENCODING = 10000 + 102
  CURLOPT_PRIVATE = 10000 + 103
  CURLOPT_HTTP200ALIASES = 10000 + 104
  CURLOPT_UNRESTRICTED_AUTH = 0 + 105
  CURLOPT_FTP_USE_EPRT = 0 + 106
  CURLOPT_HTTPAUTH = 0 + 107
  CURLOPT_SSL_CTX_FUNCTION = 20000 + 108
  CURLOPT_SSL_CTX_DATA = 10000 + 109
  CURLOPT_FTP_CREATE_MISSING_DIRS = 0 + 110
  CURLOPT_PROXYAUTH = 0 + 111
  CURLOPT_FTP_RESPONSE_TIMEOUT = 0 + 112
  CURLOPT_IPRESOLVE = 0 + 113
  CURLOPT_MAXFILESIZE = 0 + 114
  CURLOPT_INFILESIZE_LARGE = 30000 + 115
  CURLOPT_RESUME_FROM_LARGE = 30000 + 116
  CURLOPT_MAXFILESIZE_LARGE = 30000 + 117
  CURLOPT_NETRC_FILE = 10000 + 118
  CURLOPT_USE_SSL = 0 + 119
  CURLOPT_POSTFIELDSIZE_LARGE = 30000 + 120
  CURLOPT_TCP_NODELAY = 0 + 121
  CURLOPT_FTPSSLAUTH = 0 + 129
  CURLOPT_IOCTLFUNCTION = 20000 + 130
  CURLOPT_IOCTLDATA = 10000 + 131
  CURLOPT_FTP_ACCOUNT = 10000 + 134
  CURLOPT_COOKIELIST = 10000 + 135
  CURLOPT_IGNORE_CONTENT_LENGTH = 0 + 136
  CURLOPT_FTP_SKIP_PASV_IP = 0 + 137
  CURLOPT_FTP_FILEMETHOD = 0 + 138
  CURLOPT_LOCALPORT = 0 + 139
  CURLOPT_LOCALPORTRANGE = 0 + 140
  CURLOPT_CONNECT_ONLY = 0 + 141
  CURLOPT_CONV_FROM_NETWORK_FUNCTION = 20000 + 142
  CURLOPT_CONV_TO_NETWORK_FUNCTION = 20000 + 143
  CURLOPT_CONV_FROM_UTF8_FUNCTION = 20000 + 144
  CURLOPT_MAX_SEND_SPEED_LARGE = 30000 + 145
  CURLOPT_MAX_RECV_SPEED_LARGE = 30000 + 146
  CURLOPT_FTP_ALTERNATIVE_TO_USER = 10000 + 147
  CURLOPT_SOCKOPTFUNCTION = 20000 + 148
  CURLOPT_SOCKOPTDATA = 10000 + 149
  CURLOPT_SSL_SESSIONID_CACHE = 0 + 150
  CURLOPT_SSH_AUTH_TYPES = 0 + 151
  CURLOPT_SSH_PUBLIC_KEYFILE = 10000 + 152
  CURLOPT_SSH_PRIVATE_KEYFILE = 10000 + 153
  CURLOPT_FTP_SSL_CCC = 0 + 154
  CURLOPT_TIMEOUT_MS = 0 + 155
  CURLOPT_CONNECTTIMEOUT_MS = 0 + 156
  CURLOPT_HTTP_TRANSFER_DECODING = 0 + 157
  CURLOPT_HTTP_CONTENT_DECODING = 0 + 158
  CURLOPT_NEW_FILE_PERMS = 0 + 159
  CURLOPT_NEW_DIRECTORY_PERMS = 0 + 160
  CURLOPT_POSTREDIR = 0 + 161
  CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 = 10000 + 162
  CURLOPT_OPENSOCKETFUNCTION = 20000 + 163
  CURLOPT_OPENSOCKETDATA = 10000 + 164
  CURLOPT_COPYPOSTFIELDS = 10000 + 165
  CURLOPT_PROXY_TRANSFER_MODE = 0 + 166
  CURLOPT_SEEKFUNCTION = 20000 + 167
  CURLOPT_SEEKDATA = 10000 + 168
  CURLOPT_CRLFILE = 10000 + 169
  CURLOPT_ISSUERCERT = 10000 + 170
  CURLOPT_ADDRESS_SCOPE = 0 + 171
  CURLOPT_CERTINFO = 0 + 172
  CURLOPT_USERNAME = 10000 + 173
  CURLOPT_PASSWORD = 10000 + 174
  CURLOPT_PROXYUSERNAME = 10000 + 175
  CURLOPT_PROXYPASSWORD = 10000 + 176
  CURLOPT_NOPROXY = 10000 + 177
  CURLOPT_TFTP_BLKSIZE = 0 + 178
  CURLOPT_SOCKS5_GSSAPI_SERVICE = 10000 + 179
  CURLOPT_SOCKS5_GSSAPI_NEC = 0 + 180
  CURLOPT_PROTOCOLS = 0 + 181
  CURLOPT_REDIR_PROTOCOLS = 0 + 182
  CURLOPT_SSH_KNOWNHOSTS = 10000 + 183
  CURLOPT_SSH_KEYFUNCTION = 20000 + 184
  CURLOPT_SSH_KEYDATA = 10000 + 185
  CURLOPT_MAIL_FROM = 10000 + 186
  CURLOPT_MAIL_RCPT = 10000 + 187
  CURLOPT_FTP_USE_PRET = 0 + 188
  CURLOPT_RTSP_REQUEST = 0 + 189
  CURLOPT_RTSP_SESSION_ID = 10000 + 190
  CURLOPT_RTSP_STREAM_URI = 10000 + 191
  CURLOPT_RTSP_TRANSPORT = 10000 + 192
  CURLOPT_RTSP_CLIENT_CSEQ = 0 + 193
  CURLOPT_RTSP_SERVER_CSEQ = 0 + 194
  CURLOPT_INTERLEAVEDATA = 10000 + 195
  CURLOPT_INTERLEAVEFUNCTION = 20000 + 196
  CURLOPT_WILDCARDMATCH = 0 + 197
  CURLOPT_CHUNK_BGN_FUNCTION = 20000 + 198
  CURLOPT_CHUNK_END_FUNCTION = 20000 + 199
  CURLOPT_FNMATCH_FUNCTION = 20000 + 200
  CURLOPT_CHUNK_DATA = 10000 + 201
  CURLOPT_FNMATCH_DATA = 10000 + 202
  CURLOPT_RESOLVE = 10000 + 203
  CURLOPT_TLSAUTH_USERNAME = 10000 + 204
  CURLOPT_TLSAUTH_PASSWORD = 10000 + 205
  CURLOPT_TLSAUTH_TYPE = 10000 + 206
  CURLOPT_TRANSFER_ENCODING = 0 + 207
  CURLOPT_CLOSESOCKETFUNCTION = 20000 + 208
  CURLOPT_CLOSESOCKETDATA = 10000 + 209
  CURLOPT_GSSAPI_DELEGATION = 0 + 210
  CURLOPT_DNS_SERVERS = 10000 + 211
  CURLOPT_ACCEPTTIMEOUT_MS = 0 + 212
  CURLOPT_TCP_KEEPALIVE = 0 + 213
  CURLOPT_TCP_KEEPIDLE = 0 + 214
  CURLOPT_TCP_KEEPINTVL = 0 + 215
  CURLOPT_SSL_OPTIONS = 0 + 216
  CURLOPT_MAIL_AUTH = 10000 + 217
  CURLOPT_SASL_IR = 0 + 218
  CURLOPT_XFERINFOFUNCTION = 20000 + 219
  CURLOPT_XOAUTH2_BEARER = 10000 + 220
  CURLOPT_DNS_INTERFACE = 10000 + 221
  CURLOPT_DNS_LOCAL_IP4 = 10000 + 222
  CURLOPT_DNS_LOCAL_IP6 = 10000 + 223
  CURLOPT_LOGIN_OPTIONS = 10000 + 224
  CURLOPT_SSL_ENABLE_NPN = 0 + 225
  CURLOPT_SSL_ENABLE_ALPN = 0 + 226
  CURLOPT_EXPECT_100_TIMEOUT_MS = 0 + 227
  CURLOPT_PROXYHEADER = 10000 + 228
  CURLOPT_HEADEROPT = 0 + 229

from curl.

jeroen avatar jeroen commented on August 18, 2024

Everything seems fine. Can you try running the configure script manually:

git clone https://github.com/jeroenooms/curl
cd curl
R_HOME=$(R RHOME)
./configure

Now line 66 of the script should run the command above and save that to a file tools/option_table.txt. Could you check that after running the configure script, this file exists?

from curl.

beew avatar beew commented on August 18, 2024

Hi, configure failed. libcurl4-openssl-dev is already installed. I think /bin/R should be /usr/bin/R, not sure how to change it.

$ cd curl
$ R_HOME=$(R RHOME)
$ ./configure
Found pkg-config cflags and libs!
./configure: line 36: /bin/R: No such file or directory
./configure: line 37: /bin/R: No such file or directory
./configure: line 38: /bin/R: No such file or directory
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl 
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
 * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
 * rpm: libcurl-devel (Fedora, CentOS, RHEL)
 * csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
bee@bee-localhost:~/Downloads/curl$ ./configure
Found pkg-config cflags and libs!
./configure: line 36: /bin/R: No such file or directory
./configure: line 37: /bin/R: No such file or directory
./configure: line 38: /bin/R: No such file or directory
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl 
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
 * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
 * rpm: libcurl-devel (Fedora, CentOS, RHEL)
 * csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
bee@bee-localhost:~/Downloads/curl$ ./configure
Found pkg-config cflags and libs!
./configure: line 36: /bin/R: No such file or directory
./configure: line 37: /bin/R: No such file or directory
./configure: line 38: /bin/R: No such file or directory
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl 
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
 * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
 * rpm: libcurl-devel (Fedora, CentOS, RHEL)
 * csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'

from curl.

jeroen avatar jeroen commented on August 18, 2024

No I guess it didn't pick up on R_HOME with my example. Can you try this instead:

git clone https://github.com/jeroenooms/curl
cd curl
R_HOME=$(R RHOME) ./configure

from curl.

beew avatar beew commented on August 18, 2024

There are only 3 lines outputs this time

$ R_HOME=$(R RHOME) ./configure
Found pkg-config cflags and libs!
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl 

tools/option_table.txt does exist.

from curl.

jeroen avatar jeroen commented on August 18, 2024

So if tools/option_table.txt exists why can't your installation find it? Can you install it now then?

cd ..
R CMD INSTALL curl

from curl.

beew avatar beew commented on August 18, 2024

Do I need to remove the old version first?

from curl.

jeroen avatar jeroen commented on August 18, 2024

No that shouldn't matter. Let's try like this first.

from curl.

beew avatar beew commented on August 18, 2024
$ R CMD INSTALL curl
Warning: invalid package ‘curl’
Error: ERROR: no packages specified

curl folder is inside /home/username

from curl.

jeroen avatar jeroen commented on August 18, 2024

Yes so you should cd to the parent dir of the curl dir first.

from curl.

beew avatar beew commented on August 18, 2024

The parent directory of curl dir is $HOME

from curl.

jeroen avatar jeroen commented on August 18, 2024

Ok so:

cd ~
R CMD INSTALL curl

from curl.

beew avatar beew commented on August 18, 2024

Same

from curl.

jeroen avatar jeroen commented on August 18, 2024

Is there any way you can give me a ssh account on the machine?

from curl.

beew avatar beew commented on August 18, 2024

I don't have one.

from curl.

jeroen avatar jeroen commented on August 18, 2024

Ok so from scratch:

git clone https://github.com/jeroenooms/curl
R CMD INSTALL curl

from curl.

beew avatar beew commented on August 18, 2024

same

from curl.

jeroen avatar jeroen commented on August 18, 2024

I have made some changes. Could you try if this works any better:

install.packages("https://github.com/jeroenooms/curl/archive/master.tar.gz", type = "source", repos = NULL)

from curl.

beew avatar beew commented on August 18, 2024

Hi, as a test I install in my home (start R as normal user) and it works.

The update seems to be available at the moment only for the Berkeley mirror

from curl.

beew avatar beew commented on August 18, 2024

Hi, tried update today still get same error. Do you think I should just update from master or wait for it being pushed to CRAN? I fear that somehow the system may get confused if I update from master because of versioning. Thanks.

from curl.

jeroen avatar jeroen commented on August 18, 2024

Does the version from master work for you?

from curl.

beew avatar beew commented on August 18, 2024

It installed. I tried in my $HOME to check before going ahead to do system wide. I have removed it once I confirmed that it installed.

from curl.

jeroen avatar jeroen commented on August 18, 2024

I made some more changes. Could you please reinstall from master and verify that it still works for you?

install.packages("https://github.com/jeroenooms/curl/archive/master.tar.gz", 
  type = "source", repos = NULL, INSTALL_opts="--install-tests")

library(curl)
library(testthat)
test_package("curl")

from curl.

beew avatar beew commented on August 18, 2024

It installed (in my home) but test_package("curl") returned "no tests found for curl"

from curl.

jeroen avatar jeroen commented on August 18, 2024

Did you add the INSTALL_opts="--install-tests" part?

from curl.

beew avatar beew commented on August 18, 2024

Yes I did.

from curl.

beew avatar beew commented on August 18, 2024

No news?

from curl.

jeroen avatar jeroen commented on August 18, 2024

I can't reproduce your problems anywhere. Can you just try one more time:

git clone https://github.com/jeroenooms/curl
R CMD build curl
R CMD INSTALL curl_*.tar.gz --install-tests

from curl.

jeroen avatar jeroen commented on August 18, 2024

If you can't install from github just wait until it goes to CRAN.

from curl.

cstoudt avatar cstoudt commented on August 18, 2024

I've got the exact same issue: R 3.2.1 (2015-06-18) running on Linux Mint 17. Tried to install from CRAN and I downloaded the latest from Github. Either case, I get:

Error in file(filename, "r", encoding = encoding) :
cannot open the connection
Calls: source -> file
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
cannot open file '../tools/option_table.txt': No such file or directory
Execution halted
make: *** [options] Error 1

0.9.2 installed fine.

from curl.

jeroen avatar jeroen commented on August 18, 2024

Did you try:

install.packages("https://github.com/jeroenooms/curl/archive/master.tar.gz", 
  type = "source", repos = NULL, INSTALL_opts="--install-tests", method = "libcurl")

from curl.

cstoudt avatar cstoudt commented on August 18, 2024

install.packages("https://github.com/jeroenooms/curl/archive/master.tar.gz", type = "source", repos = NULL, INSTALL_opts="--install-tests")

Error in download.file(p, destfile, method, mode = "wb", ...) :
unsupported URL scheme

from curl.

jeroen avatar jeroen commented on August 18, 2024

Oke try adding method = "libcurl"

from curl.

beew avatar beew commented on August 18, 2024

I can install from github but test_package("curl") always returns "no tests found for curl" Not sure if that is a problem.

from curl.

gawbul avatar gawbul commented on August 18, 2024

Same problem here installing from CRAN, but install.packages("https://github.com/jeroenooms/curl/archive/master.tar.gz",type = "source", repos = NULL, INSTALL_opts="--install-tests") worked fine. 👍

from curl.

beew avatar beew commented on August 18, 2024

Updating to 0.94 works finally.

from curl.

jeroen avatar jeroen commented on August 18, 2024

Ok perfect

from curl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.