在 Red Hat 中安装 Curl 时出错

在 Red Hat 中安装 Curl 时出错

我在 Red Hat Enterprise Linux Server 中安装 curl 时出现此错误

 ../lib/.libs/libcurl.so: undefined reference to `ERR_remove_thread_state'
 collect2: ld returned 1 exit status
 make[2]: *** [curl] Error 1
 make[2]: Leaving directory `/root/src/curl-7.26.0/src'
 make[1]: *** [install] Error 2
 make[1]: Leaving directory `/root/src/curl-7.26.0/src'
 make: *** [install-recursive] Error 1

有什么办法可以修复这个问题吗?

答案1

链接器找不到包含 ERR_remove_thread_state 的库,我相信该库由 openssl 提供。您的命令行(或 makefile)是否指向 openssl 库(假设首先安装了适当的版本)?

正如评论所建议的,使用 yum 安装预编译的软件并解决任何依赖关系可能会更容易。即使您希望自己从源代码构建它,也可能有这样做的情况(使用 yum 来识别和解决依赖关系)。

相关内容