安裝openssh-portable時遇到的問題及解決辦法
阿新 • • 發佈:2018-12-25
問題1:
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 check
by running “./configure –without-openssl-header-check”.
Also see contrib/findssl.sh for help identifying header/library mismatches.
解決辦法是指定你本地環境的openssl路徑:
./configure –with-ssl-dir=/usr/local/Cellar/openssl/1.0.2g
問題2:
cannot find input file: `config.h.in’
這個問題是這麼處理的:
vi configure.ac
set ff=unix
然後autoreconf
之後重新:
./configure –with-ssl-dir=/usr/local/Cellar/openssl/1.0.2g
即可configure成功!
最後configure成功之後是這樣的:
OpenSSH has been configured with the following options:
User binaries: /usr/local/bin
System binaries: /usr/local/sbin
Configuration files: /usr/local/etc
Askpass program: /usr/local/libexec/ssh-askpass
Manual pages: /usr/local/share/man/manX
PID file: /var /run
Privilege separation chroot path: /var/empty
sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
Manpage format: doc
PAM support: no
OSF SIA support: no
KerberosV support: no
SELinux support: no
Smartcard support:
S/KEY support: no
MD5 password support: no
libedit support: no
Solaris process contract support: no
Solaris project support: no
Solaris privilege support: no
IP address in $DISPLAY hack: no
Translate v4 in v6 hack: no
BSD Auth support: no
Random number source: OpenSSL internal ONLY
Privsep sandbox style: darwin
Host: x86_64-apple-darwin13.4.0
Compiler: gcc
Compiler flags: -g -O2 -Qunused-arguments -Wunknown-warning-option -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-protector-all -fPIE
Preprocessor flags: -I/usr/local/Cellar/openssl/1.0.2g/include
Linker flags: -L/usr/local/Cellar/openssl/1.0.2g/lib -fstack-protector-all -pie
Libraries: -lcrypto -lz -lresolv
+for sshd: -lsandbox