Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'curl' Installation failed. #42

Closed
Feng-Bai opened this issue Oct 8, 2015 · 1 comment
Closed

'curl' Installation failed. #42

Feng-Bai opened this issue Oct 8, 2015 · 1 comment

Comments

@Feng-Bai
Copy link

Feng-Bai commented Oct 8, 2015

HI, I was trying to install R package 'culr' on a RHEL machine. I got the following errors.

"* installing source package âcurlâ ...
** package âcurlâ successfully unpacked and MD5 sums checked
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/nz/export/ae/appsysroot/host64/include
Using PKG_LIBS=-L/nz/export/ae/appsysroot/host64/lib64 -lcurl
** libs
"/nz/export/ae/languages/r/3.1/host64/lib64/R/bin/Rscript" "../tools/options.R"
/nz/export/ae/sysroot/host64/bin/gcc -std=gnu99 -I/nz/export/ae/languages/r/3.1/host64/lib64/R/include -DNDEBUG -I/nz/export/ae/appsysroot/host64/include -m64 -I/nz/export/ae/sysroot/host64/include -fpic -m64 -O1 -c callbacks.c -o callbacks.o
/nz/export/ae/sysroot/host64/bin/gcc -std=gnu99 -I/nz/export/ae/languages/r/3.1/host64/lib64/R/include -DNDEBUG -I/nz/export/ae/appsysroot/host64/include -m64 -I/nz/export/ae/sysroot/host64/include -fpic -m64 -O1 -c curl.c -o curl.o
/nz/export/ae/sysroot/host64/bin/gcc -std=gnu99 -I/nz/export/ae/languages/r/3.1/host64/lib64/R/include -DNDEBUG -I/nz/export/ae/appsysroot/host64/include -m64 -I/nz/export/ae/sysroot/host64/include -fpic -m64 -O1 -c download.c -o download.o
/nz/export/ae/sysroot/host64/bin/gcc -std=gnu99 -I/nz/export/ae/languages/r/3.1/host64/lib64/R/include -DNDEBUG -I/nz/export/ae/appsysroot/host64/include -m64 -I/nz/export/ae/sysroot/host64/include -fpic -m64 -O1 -c escape.c -o escape.o
/nz/export/ae/sysroot/host64/bin/gcc -std=gnu99 -I/nz/export/ae/languages/r/3.1/host64/lib64/R/include -DNDEBUG -I/nz/export/ae/appsysroot/host64/include -m64 -I/nz/export/ae/sysroot/host64/include -fpic -m64 -O1 -c fetch.c -o fetch.o
/nz/export/ae/sysroot/host64/bin/gcc -std=gnu99 -I/nz/export/ae/languages/r/3.1/host64/lib64/R/include -DNDEBUG -I/nz/export/ae/appsysroot/host64/include -m64 -I/nz/export/ae/sysroot/host64/include -fpic -m64 -O1 -c form.c -o form.o
/nz/export/ae/sysroot/host64/bin/gcc -std=gnu99 -I/nz/export/ae/languages/r/3.1/host64/lib64/R/include -DNDEBUG -I/nz/export/ae/appsysroot/host64/include -m64 -I/nz/export/ae/sysroot/host64/include -fpic -m64 -O1 -c getdate.c -o getdate.o
/nz/export/ae/sysroot/host64/bin/gcc -std=gnu99 -I/nz/export/ae/languages/r/3.1/host64/lib64/R/include -DNDEBUG -I/nz/export/ae/appsysroot/host64/include -m64 -I/nz/export/ae/sysroot/host64/include -fpic -m64 -O1 -c handle.c -o handle.o
/nz/export/ae/sysroot/host64/bin/gcc -std=gnu99 -I/nz/export/ae/languages/r/3.1/host64/lib64/R/include -DNDEBUG -I/nz/export/ae/appsysroot/host64/include -m64 -I/nz/export/ae/sysroot/host64/include -fpic -m64 -O1 -c ieproxy.c -o ieproxy.o
/nz/export/ae/sysroot/host64/bin/gcc -std=gnu99 -I/nz/export/ae/languages/r/3.1/host64/lib64/R/include -DNDEBUG -I/nz/export/ae/appsysroot/host64/include -m64 -I/nz/export/ae/sysroot/host64/include -fpic -m64 -O1 -c init.c -o init.o
/nz/export/ae/sysroot/host64/bin/gcc -std=gnu99 -I/nz/export/ae/languages/r/3.1/host64/lib64/R/include -DNDEBUG -I/nz/export/ae/appsysroot/host64/include -m64 -I/nz/export/ae/sysroot/host64/include -fpic -m64 -O1 -c utils.c -o utils.o
/nz/export/ae/sysroot/host64/bin/gcc -std=gnu99 -I/nz/export/ae/languages/r/3.1/host64/lib64/R/include -DNDEBUG -I/nz/export/ae/appsysroot/host64/include -m64 -I/nz/export/ae/sysroot/host64/include -fpic -m64 -O1 -c version.c -o version.o
/nz/export/ae/sysroot/host64/bin/gcc -std=gnu99 -shared -m64 -Bdirect,--hash-style=both,-Wl,-O1 -L/nz/export/ae/core/thirdParty/intel_mkl/current/lib/em64t -L/nz/export/ae/sysroot/host64/lib64 -L/nz/export/ae/sysroot/host64/usr/lib64 -L/nz/export/ae/sysroot/host64/x86_64-rhel5-linux-gnu/lib64 -Wl,-rpath=/nz/export/ae/core/thirdParty/intel_mkl/current/lib/em64t:/nz/export/ae/sysroot/host64/lib64:/nz/export/ae/sysroot/host64/usr/lib64:/nz/export/ae/sysroot/host64/x86_64-rhel5-linux-gnu/lib64 -o curl.so callbacks.o curl.o download.o escape.o fetch.o form.o getdate.o handle.o ieproxy.o init.o utils.o version.o -L/nz/export/ae/appsysroot/host64/lib64 -lcurl -L/nz/export/ae/languages/r/3.1/host64/lib64/R/lib -lR
installing to /nz/export/ae/languages/r/3.1/host64/lib64/R/library/curl/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/nz/export/ae/languages/r/3.1/host64/lib64/R/library/curl/libs/curl.so':
libcurl.so.4: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed

  • removing â/nz/export/ae/languages/r/3.1/host64/lib64/R/library/curlâ
    Warning message:
    In install.packages("/tmp/renjith/curl_0.9.3.tar.gz") :
    installation of package â/tmp/renjith/curl_0.9.3.tar.gzâ had non-zero exit status
    "

After this, I manually compiled the curl.so and ran ldd on it. The following is the result:
[nz@umabofanzd05h1 src]$ ldd curl.so
linux-vdso.so.1 => (0x00007fff1730c000)
libcurl.so.4 => not found
libR.so => not found
libc.so.6 => /nz/export/ae/sysroot/host64/lib64/libc.so.6 (0x00002b7b6769d000)
/lib64/ld-linux-x86-64.so.2 (0x0000003d91400000)
[nz@umabofanzd05h1 src]$ locate libcurl.so.4
/nz/export/ae/appsysroot/curl-7.44.0/lib/.libs/libcurl.so.4
/nz/export/ae/appsysroot/curl-7.44.0/lib/.libs/libcurl.so.4.4.0
/nz/export/ae/appsysroot/host64/lib64/libcurl.so.4
/nz/export/ae/appsysroot/host64/lib64/libcurl.so.4.4.0
/nz/export/ae/appsysroot/spu64/lib64/libcurl.so.4
/nz/export/ae/appsysroot/spu64/lib64/libcurl.so.4.4.0
[nz@umabofanzd05h1 src]$ locate libR.so
/nz/export/ae/languages/r/3.1/host64/lib64/R/lib/libR.so
/nz/export/ae/languages/r/3.1/spu64/lib64/R/lib/libR.so

Any idea why curl.so can't be loaded? Thanks for any help!

@Feng-Bai
Copy link
Author

Feng-Bai commented Oct 9, 2015

It is resolved. The LD_LIBARY_PATH doesn't include the correct path.

@jeroen jeroen closed this as completed Oct 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants