V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
yunhui
V2EX  ›  Linux

linux 编译 curl 出错

  •  
  •   yunhui · 2015-11-12 22:42:18 +08:00 · 2786 次点击
    这是一个创建于 3059 天前的主题,其中的信息可能已经有所发展或是发生改变。
    编译 curl make 死活不通过,唉
    执行参数如下,谢谢各位帮忙看看
    ```
    这一步一切正常
    root@debian:~/curl-7.45.0# ./configure --with-ssl
    ```
    ![图片描述][1]

    make

    ```
    一顿编译之后 ...... 然后出错了
    ../lib/.libs/libcurl.so: undefined reference to `SSLv2_client_method'
    ../lib/.libs/libcurl.so: undefined reference to `SSL_CTX_set_alpn_protos'
    ../lib/.libs/libcurl.so: undefined reference to `SSL_get0_alpn_selected'
    collect2: error: ld returned 1 exit status
    make[2]: *** [curl] Error 1
    make[2]: Leaving directory `/root/curl-7.45.0/src'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/root/curl-7.45.0/src'
    make: *** [all-recursive] Error 1

    ```

    ![图片描述][2]

    openssl 也是编译的,参数如下

    ```
    ./config shared zlib
    已经编译成功

    root@debian:~/curl-7.45.0# openssl version
    OpenSSL 1.0.2d 9 Jul 2015
    root@debian:~/curl-7.45.0#
    ```

    [1]: http://segmentfault.com/img/bVqTxQ
    [2]: http://segmentfault.com/img/bVqTyo
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4608 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 09:53 · PVG 17:53 · LAX 02:53 · JFK 05:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.