使用openssl安装curl [英] Install curl with openssl
本文介绍了使用openssl安装curl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚从 http://www.openssl.org/source/ 下载并安装了OpenSSL [http://www.openssl.org/source/openssl-1.0.1c.tar.gz]
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
现在我下载了CURL - http://curl.haxx.se/download/curl-7.27。 0.tar.gz 。尝试配置curl与openssl给我以下错误 -
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?
推荐答案
在配置libcurl时尝试此操作
Try this when you configure the libcurl
sudo ./configure --with-ssl --with-libssl-prefix=/usr/local/ssl
code> / usr / local / ssl 是openssl包含头文件和库
/usr/local/ssl
is where openssl contains header files and library
/usr/local/ssl/
├── bin
├── certs
├── include
├── lib
├── man
├── misc
├── openssl.cnf
└── private
这篇关于使用openssl安装curl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文