Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
yunhui
V2EX  ›  Linux

linux 编译 curl 出错

  •  
  •   yunhui · Nov 12, 2015 · 3651 views
    This topic created in 3836 days ago, the information mentioned may be changed or developed.
    编译 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
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3808 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 04:58 · PVG 12:58 · LAX 21:58 · JFK 00:58
    ♥ Do have faith in what you're doing.