Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install curl with openssl

Tags:

curl

libcurl

I just downloaded and installed OpenSSL from http://www.openssl.org/source/ [http://www.openssl.org/source/openssl-1.0.1c.tar.gz]

./config
make
make test
make install

Now I downloaded CURL - http://curl.haxx.se/download/curl-7.27.0.tar.gz. Trying to configure curl with openssl gives me below error -

.............................................................
checking for ssl with RSAglue/rsaref libs in use... checking for SSL_connect in -lssl... (cached) no
no
configure: error: OpenSSL libs and/or directories were not found where specified!
[[email protected]]# ls -l /usr/local/ssl
total 40
drwxr-xr-x 2 root root  4096 Sep 28 01:21 bin
drwxr-xr-x 2 root root  4096 Sep 28 01:21 certs
drwxr-xr-x 3 root root  4096 Sep 28 01:21 include
drwxr-xr-x 4 root root  4096 Sep 28 01:21 lib
drwxr-xr-x 6 root root  4096 Sep 28 01:21 man
drwxr-xr-x 2 root root  4096 Sep 28 01:21 misc
-rw-r--r-- 1 root root 10835 Sep 28 01:21 openssl.cnf
drwxr-xr-x 2 root root  4096 Sep 28 01:21 private
[[email protected]]#

I am not sure how I can fix this error?

like image 213
Programmer Avatar asked Sep 28 '12 08:09

Programmer


1 Answers

Try this when you configure the libcurl

./configure --with-ssl --with-libssl-prefix=/usr/local/ssl

/usr/local/ssl is where openssl contains header files and library

/usr/local/ssl/
├── bin
├── certs
├── include
├── lib
├── man
├── misc
├── openssl.cnf
└── private
like image 153
rajeshk Avatar answered Oct 04 '22 00:10

rajeshk