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
2
Answers
Try to configure with below parameters.
./configure –with-ssl –with-libssl-prefix=/usr/local/ssl
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, settingLD_LIBRARY_PATH
is for finding run-time libraries. These are not sufficient for building.LD_LIBRARY_PATH
may be necessary later for yourcurl
program and library to find youropenssl
shared library.See https://askubuntu.com/q/475670
I didn’t check which of the options from the answers are correct. Try