curl: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
I would like to use curl latest version always, so I don't install curl via apt-get, install it from tar ball instead. But, I always see the following error message when executing curl.
curl: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
I have not known libcurl.so is not installed with curl and I modified this error fixed by following steps.
- find / -name libcurl.so.4
- cd /etc/ld.so.conf.d
- cp libc.conf libcurl.conf
- if libcurl.so.4 location were not /usr/local/lib, modify libcurl.conf
- ldconfig
- curl
This is not correct procedure. Installing libcurl3 via apt-get can fix this problem. Maybe using --disable-libcurl-option can avoid above message also, but I have never test --disable-libcurl-option yet.