gpt4 book ai didi

php - cURL 与 SSL 依赖错误 libssl.so libcrypto.so 在 Ubuntu 32 位中需要

转载 作者:太空宇宙 更新时间:2023-11-03 13:28:09 25 4
gpt4 key购买 nike

当我使用命令安装 openssl、curl 和 PHP 时,我的 64 位 Ubuntu 没有问题

OpenSSL

./configure enable-shared

curl

./configure --with-ssl=/usr/local/ssl --with-zlib

PHP

./configure .... --with-openssl --with-curl ....

但是在我的 32 位 Ubuntu 中,当我运行

make

命令

这是我得到的错误

/usr/bin/ld: warning: libssl.so.1.0.0, needed by ../lib/.libs/libcurl.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libcrypto.so.1.0.0, needed by ../lib/.libs/libcurl.so, not found (try using -rpath or -rpath-link)

我浏览了/usr/local/ssl 目录,确实找到了声称丢失的两个文件。我不知道这里发生了什么。帮助!

最佳答案

我发现了问题,忽略 cURL 的网站文档对我来说太愚蠢了。我所要做的就是为运行时链接器传入环境变量,以便在配置之前使用共享库。

env LDFLAGS=-R/usr/local/ssl/lib ./configure --with-ssl --with-zlib

..它没有任何问题。我现在甚至在 Ubuntu 32 位中也支持 https。这是文档链接 http://curl.haxx.se/docs/install.html

关于php - cURL 与 SSL 依赖错误 libssl.so libcrypto.so 在 Ubuntu 32 位中需要,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18124658/

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