openssh 链接 libressl 编译,提示未找到 openssl 头文件 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
station
V2EX    Linux

openssh 链接 libressl 编译,提示未找到 openssl 头文件

  •  
  •   station Oct 17, 2016 15482 views
    This topic created in 3482 days ago, the information mentioned may be changed or developed.
    编译选项,至于我为什么会去选择 libressl ,纯粹出于实验

    configure: error: OpenSSL version header not found

    zlib ./configure --prefix=/usr/local/zlib 64&&make&&make install

    libressl ./configure --prefix=/usr/local/libressl LDFLAGS=-lrt&&make check&&make install

    openssh ./configure --prefix=/usr/local/openssh --syscOnfdir=/etc/ssh --with-zlib=/usr/local/zlib --with-ssl-dir=/usr/local/libressl --with-selinux --with-md5-passwords --with-ssl-engine
    5 replies    2016-10-17 12:11:37 +08:00
    shlabc
        1
    shlabc  
       Oct 17, 2016
    自己下载 openssl-1.1.0b.tar.gz ,然后编译安装
    在 /etc/profile 里修改 PATH
    编译你这个源码时,指定参数--with-openssl ,注意,有的源码要求使用 openssl 源码包解压的路径,而不是安装的路径
    station
        2
    station  
    OP
       Oct 17, 2016
    @shlabc 还要下载 openssl ?我 google 看到 openssh 7.1 后面可以选择链接到 libressl
    station
        3
    station  
    OP
       Oct 17, 2016
    @shlabc 试了下你的解压 ssl 源码包的方法

    checking whether snprintf correctly terminates long strings... yes
    checking whether vsnprintf returns correct values on overflow... yes
    checking whether snprintf can declare const char *fmt... yes
    checking whether system supports SO_PEERCRED getsockopt... yes
    checking for (overly) strict mkstemp... yes
    checking if openpty correctly handles controlling tty... yes
    checking whether AI_NUMERICSERV is declared... yes
    checking whether getpgrp requires zero arguments... yes
    checking OpenSSL header version... 20000000 (LibreSSL 2.5.0)
    checking OpenSSL library version... 1000105f (OpenSSL 1.0.1e-fips 11 Feb 2013)
    checking whether OpenSSL's headers match the library... no
    configure: error: Your OpenSSL headers do not match your
    library. Check config.log for details.
    If you are sure your installation is consistent, you can disable the che ck
    by running "./configure --without-openssl-header-check".
    Also see contrib/findssl.sh for help identifying header/library mismatch es.
    shlabc
        4
    shlabc  
       Oct 17, 2016
    @station 大家看不到你的实际操作环境,只能按正常操作方法来进行提示

    总之,就是缺什么补什么,源码编译安装,基本可以搞定一切
    shlabc
        5
    shlabc  
       Oct 17, 2016
    @station

    yum -y install openssl*
    yum -y install openssl-devel

    wget ftp://ftp.openssl.org/source/openssl-1.0.2h.tar.gz
    tar zvxf openssl-1.0.2h.tar.gz
    cd openssl-1.0.2h

    ./config --prefix=/usr/local/ins/openssl-1.0.2h

    make && make install

    这是我以前安装 openssl-1.0.2h 时的命令( CentOS 5.11 ),正常安装成功,你出什么错误提示,网上搜索解决即可。
    About     Help     Advertise     Blog     API     FAQ     Solana     957 Online   Highest 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 33ms UTC 19:05 PVG 03:05 LAX 12:05 JFK 15:05
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86