So I wanted to install curl with HTTPS protocol, I did it like so:
- sudo -i wget http://curl.haxx.se/download/curl-7.21.6.tar.bz2
- sudo -i tar jxf curl-7.21.6.tar.bz2
- sudo -i rm curl-7.21.6.tar.bz2
- sudo -i cd curl-7.21.6/
- sudo -i ./configure
- sudo -i make prefix=/usr/local all
- sudo -i make prefix=/usr/local install
and last I tried: sudo -i curl –version to see if I succeeded and the answer was “No!”. The error I got is here:
curl: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
prefix=/usr/localshould be set inconfigureinstead, like:Not in
make. However,configuresets prefix to/usr/localby default in autotools, so you don’t need to specify that anyways. Then just run:Note that when compiling code, you should always do it as a standard user, not as sudo or root. Only do it for make install, which is where you actually need permissions to do things like chmod and moving files around. Let me know if that works for you.