Frank.diao
2018-01-18 03:39
采纳率: 100%
浏览 3.4k

Curl make的时候报错,求大佬指点迷津

因为默认的curl不支持https协议,我编译安装完openssl之后显示已支持https了,但是在重新make curl时出现报错。
求大佬指点迷津。

curl版本:7.57
openssl版本:1.1.0g
ubuntu版本:14.04.2 LTS 

详细报错信息如下:

root@iZwz9akk7iswd53zv5vrzeZ:~/curl-7.57.0# make
Making all in lib
make[1]: Entering directory `/root/curl-7.57.0/lib'
make  all-am
make[2]: Entering directory `/root/curl-7.57.0/lib'
make[2]: Leaving directory `/root/curl-7.57.0/lib'
make[1]: Leaving directory `/root/curl-7.57.0/lib'
Making all in src
make[1]: Entering directory `/root/curl-7.57.0/src'
Making all in ../docs
make[2]: Entering directory `/root/curl-7.57.0/docs'
Making all in .
make[3]: Entering directory `/root/curl-7.57.0/docs'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/curl-7.57.0/docs'
Making all in cmdline-opts
make[3]: Entering directory `/root/curl-7.57.0/docs/cmdline-opts'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/curl-7.57.0/docs/cmdline-opts'
make[2]: Leaving directory `/root/curl-7.57.0/docs'
make[2]: Entering directory `/root/curl-7.57.0/src'
  CCLD     curl
../lib/.libs/libcurl.so: undefined reference to `SSLv23_client_method'
../lib/.libs/libcurl.so: undefined reference to `CONF_modules_free'
../lib/.libs/libcurl.so: undefined reference to `ERR_free_strings'
../lib/.libs/libcurl.so: undefined reference to `sk_value'
../lib/.libs/libcurl.so: undefined reference to `SSL_library_init'
../lib/.libs/libcurl.so: undefined reference to `sk_pop_free'
../lib/.libs/libcurl.so: undefined reference to `SSLeay'
../lib/.libs/libcurl.so: undefined reference to `SSLv3_client_method'
../lib/.libs/libcurl.so: undefined reference to `OPENSSL_add_all_algorithms_noconf'
../lib/.libs/libcurl.so: undefined reference to `SSL_COMP_free_compression_methods'
../lib/.libs/libcurl.so: undefined reference to `EVP_cleanup'
../lib/.libs/libcurl.so: undefined reference to `sk_num'
../lib/.libs/libcurl.so: undefined reference to `sk_pop'
../lib/.libs/libcurl.so: undefined reference to `SSL_load_error_strings'
collect2: error: ld returned 1 exit status
make[2]: *** [curl] Error 1
make[2]: Leaving directory `/root/curl-7.57.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/curl-7.57.0/src'
make: *** [all-recursive] Error 1

error

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

6条回答 默认 最新

  • threenewbee 2018-01-18 03:48
    已采纳
    已采纳该答案
    1 打赏 评论
  • Frank.diao 2018-01-18 08:59

    感谢各位大佬,问题已经解决了。

    ./configure --disable-ldap --disable-ldaps
    执行这个命令就可以解决。

    1 打赏 评论
  • Frank.diao 2018-01-18 05:52

    大佬们,上面的链接我试过了,还是报错

    1 打赏 评论
  • 聪明不绝顶er 2018-01-18 06:41

    应该缺少依赖库libcrypto吧

    1 打赏 评论
  • 乾元清 2018-01-18 08:02
    1 打赏 评论
  • weixin_42222574 2019-06-21 10:52

    /configure --disable-ldap --disable-ldaps

    1 打赏 评论

相关推荐 更多相似问题