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

编译 curl 的 openssl 的版本不符

  •  
  •   yunhui · Nov 13, 2015 · 4136 views
    This topic created in 3836 days ago, the information mentioned may be changed or developed.
    手动编译的 openssl-OpenSSL_1_0_1p
    并且编译完成之后
    echo "/usr/local/ssl/lib" >> /etc/ld.so.conf
    ldconfig -v
    更新了动态库链接,并且重启了系统
    之后编译 curl
    ./config --with-ssl=~/openssl-OpenSSL_1_0_1p
    指向的是 openssl 的源码目录
    编译完成 curl 之后
    curl -V
    curl 7.45.0 (x86_64-pc-linux-gnu) libcurl/7.45.0 OpenSSL/1.0.1e zlib/1.2.8

    OpenSSL/1.0.1e 竟然是老版本
    1 replies    2015-11-21 17:22:20 +08:00
    lionado
        1
    lionado  
       Nov 21, 2015
    可能编译时默认检索的头文件、类库还是默认的旧版本。手动添加编译环境变量试试:
    ./config CFLAGS="-I/usr/local/ssl/include" LDFLAGS="-L/usr/local/ssl/lib"
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3807 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 04:58 · PVG 12:58 · LAX 21:58 · JFK 00:58
    ♥ Do have faith in what you're doing.