gpt4 book ai didi

curl - 使用 openssl 安装 curl

转载 作者:行者123 更新时间:2023-12-04 17:02:22 24 4
gpt4 key购买 nike

我刚刚从 http://www.openssl.org/source/ 下载并安装了 OpenSSL [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 .尝试使用 openssl 配置 curl 给我以下错误 -
.............................................................
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]#

我不确定如何解决此错误?

最佳答案

配置 libcurl 时试试这个

./configure --with-ssl --with-libssl-prefix=/usr/local/ssl
/usr/local/ssl openssl 包含头文件和库的地方
/usr/local/ssl/
├── bin
├── certs
├── include
├── lib
├── man
├── misc
├── openssl.cnf
└── private

关于curl - 使用 openssl 安装 curl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12636536/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com