Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
676 views
in Technique[技术] by (71.8m points)

libcurl - Install curl with openssl

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!
[root@curl-7.27.0]# 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
[root@curl-7.27.0]#

I am not sure how I can fix this error?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...