Skip to content
Advertisement

Curl is not installing with ssl support in Centos (at user defined –perfix)

There is already a curl & openssl version installed in my system (Centos). I am trying to install curl with ssl support.

what I’ve done:
I have installed openssl from git (master) and installed it as follows
./configure --prefix=/path/to/xyz/dir
make
make install

This creates bin,include,lib etc at the location /path/to/xyz/dir

Then I have added this path in environment variables export PATH=$PATH:/path/to/xyz/dir/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/xyz/dir/lib

Then I downloaded the curl-7.60.0 from https://curl.haxx.se/download/curl-7.60.0.tar.gz, and trying to install it as:
./configure --prefix=/path/to/xyz/dir --with-ssl

But I am not getting the SSL-support as yes CurlSSl

Advertisement

Answer

When you build curl with openssl at a non-standard location you have to tell configure where to find it.

Setting PATH is for running executable programs, setting LD_LIBRARY_PATH is for finding run-time libraries. These are not sufficient for building. LD_LIBRARY_PATH may be necessary later for your curl program and library to find your openssl shared library.

See https://askubuntu.com/q/475670

I didn’t check which of the options from the answers are correct. Try

./configure --with-ssl --with-libssl-prefix=/path/to/xyz/dir`
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement