Comments (9)
According to this page, it appears that CURLOPT_GSSAPI_DELEGATION
was added in libcurl
7.22.0, so I'm wondering if this could be a version error.
from curl.
Hmmm. Do you have multiple versions of libcurl installed on the machine? Can send me the file /usr/include/curl/curl.h
?
from curl.
The script should automatically find available options via https://github.com/jeroenooms/curl/blob/v0.4/configure#L15.
from curl.
I'll send the file to your stat.ucla.edu email address shortly. No luck with the script:
line 15: src/option_table.h: No such file or directory
from curl.
The option_table.h
file gets generated when you run configure
. It looks as if you might have another version of curl.h
somewhere on your system?
I just added a line to the configure script that prints the path of curl.h
when installing the package. Can you try again:
devtools::install_github("jeroenooms/curl")
And see what curl path it reports? E.g. Found libcurl in...
from curl.
Below is the updated output, which shows curl.h
in the location you specified. I also ran a search for curl.h
and did find two versions of the file on the machine.
$ find / -name curl.h 2>/dev/null
/usr/local/include/curl/curl.h
/usr/include/curl/curl.h
I'll remove a version and see if that resolves the error.
> devtools::install_github("jeroenooms/curl")
Downloading github repo jeroenooms/curl@master
Installing curl
'/usr/lib64/R/bin/R' --vanilla CMD INSTALL \
'/tmp/Rtmpm1KYhi/devtools33c68416980/jeroenooms-curl-37044c2' \
--library='/opt/Rapp/jrowen/R/x86_64-redhat-linux-gnu-library/3.1' \
--install-tests
* installing *source* package ‘curl’ ...
Found libcurl in /usr/include/curl/curl.h
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c curl.c -o curl.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c download.c -o download.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c escape.c -o escape.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c options.c -o options.o
In file included from options.h:15,
from options.c:3:
option_table.h:168: error: ‘CURLOPT_GSSAPI_DELEGATION’ undeclared here (not in a function)
make: *** [options.o] Error 1
ERROR: compilation failed for package ‘curl’
* removing ‘/opt/Rapp/jrowen/R/x86_64-redhat-linux-gnu-library/3.1/curl’
Error: Command failed (1)
from curl.
As you surmised, this error was caused by a second version of curl.h
on the machine. After removing the second version, the installation was successful. Thanks for the suggestions.
> devtools::install_github("jeroenooms/curl")
Downloading github repo jeroenooms/curl@master
Installing curl
'/usr/lib64/R/bin/R' --vanilla CMD INSTALL \
'/tmp/Rtmpm1KYhi/devtools33c1e7771a8/jeroenooms-curl-37044c2' \
--library='/opt/Rapp/jrowen/R/x86_64-redhat-linux-gnu-library/3.1' \
--install-tests
* installing *source* package ‘curl’ ...
Found libcurl in /usr/include/curl/curl.h
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c curl.c -o curl.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c download.c -o download.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c escape.c -o escape.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c options.c -o options.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c utils.c -o utils.o
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c version.c -o version.o
gcc -m64 -std=gnu99 -shared -L/usr/lib64/R/lib -L/usr/local/lib64 -o curl.so curl.o download.o escape.o options.o utils.o version.o -lcurl -L/usr/lib64/R/lib -lR
installing to /opt/Rapp/jrowen/R/x86_64-redhat-linux-gnu-library/3.1/curl/libs
** R
** preparing package for lazy loading
** help
*** installing help indices
converting help for package ‘curl’
finding HTML links ... done
curl html
curl_download html
utilities html
** building package indices
** testing if installed package can be loaded
* DONE (curl)
from curl.
OK great. Do you know where the second version came from? Did you build libcurl manually?
from curl.
The second version was in the /usr/local/include/curl
. We used yum
to install libcurl
, so I'm not sure how the other version was installed. It may have been part of the base image we're using.
from curl.
Related Issues (20)
- Cannot use the correct curl library on Mac HOT 6
- Differences between POSTing with the CLI curl (Bash) and the R curl package HOT 1
- can not install curl Rpackage HOT 1
- Error in curl::curl_fetch_memory(url, handle = handle) HOT 2
- Do discovered vulnerabilities in curl apply here? HOT 1
- Issues with postfieldsize in recent R curl versions
- 'Remote file not found' if SMB path has Unicode characters HOT 6
- Error in curl::handle_setopt(handle, .list = req$options): Option seekfunction (20167) has unknown or unsupported type. HOT 2
- form_data documentation is lacking
- parse_headers throws an error when a site responds with an empty header HOT 2
- Out of memory errors for libcurl ≥ 7.71.0 HOT 1
- FTP directory created successfuly, but curl returns with error HOT 3
- Feature request: Use environment variable `CURL_CA_BUNDLE` if set HOT 14
- inconsistent SSL version in vignette
- Allow users to pass pool object in `multi_download()`
- Use httpuv::randomPort() in curl_echo
- Why is curl_echo() slow sometimes HOT 2
- How to resolve "SSL: no alternative certificate subject name matches target host name '<proxy.server.address>'"
- httpuv delays in curl_echo on Linux HOT 1
- Can't get all bytes received before RST HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curl.