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: (2) Failed initialization from anaconda #122

Closed
shanjoshi opened this issue May 26, 2014 · 1 comment
Closed

curl: (2) Failed initialization from anaconda #122

shanjoshi opened this issue May 26, 2014 · 1 comment

Comments

@shanjoshi
Copy link

Hello,

If one uses curl supplied by anaconda, it fails:
curl: (2) Failed initialization from anaconda

This is because
ldd //anaconda/bin/curl
returns
libcurl.so.4 => //anaconda/lib/libcurl.so.4
However LD_LIBRARY_PATH does not include anaconda/lib

After anaconda installation, the anaconda/bin directory is added to the PATH using ~/.bashrc, but the LD_LIBRARY_PATH is not updated.
So when one runs curl, it's picking up the wrong libs.

There was some suggestion about removing curl altogether (#72). May not be a bad idea.

Platform: Linux
conda version: 3.5.0
Anaconda version: 1.9.2

Shantanu

@nehaljwani
Copy link

libcurl.so.4 => //anaconda/lib/libcurl.so.4

This is intended. It is actually pointing to the right library. LD_LIBRARY_PATH is not needed since it uses RPATH.

(122) [nwani@heathens ~]$ ldd $CONDA_PREFIX/bin/curl | grep libcurl
	libcurl.so.4 => /home/nwani/m3/envs/122/bin/../lib/libcurl.so.4 (0x00007f29e7aa2000)
(122) [nwani@heathens ~]$ chrpath -l $CONDA_PREFIX/bin/curl
/home/nwani/m3/envs/122/bin/curl: RPATH=$ORIGIN/../lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants