标签:
# wget http://www.openssl.org/source/openssl-1.0.1h.tar.gz
# tar xvf openssl-1.0.1h.tar.gz
# cd openssl-1.0.1h/
# ./config shared zlib
...
make[1]: Nothing to be done for `links‘.
make[1]: Leaving directory `/root/openssl-1.0.1h/tools‘
generating dummy tests (if needed)...
make[1]: Entering directory `/root/openssl-1.0.1h/test‘
make[1]: Nothing to be done for `generate‘.
make[1]: Leaving directory `/root/openssl-1.0.1h/test‘
Configured for linux-x86_64.
# make
报错了,没有发现zlib.h
需要安装
# apt-get install zlib1g-dev
重新编译:
# make
编译成功
# make install
# rm -rf /usr/bin/openssl
# rm -rf /usr/include/openssl/
# ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
# ln -s /usr/local/ssl/include/openssl/ /usr/include/openssl
# echo "/usr/local/ssl/lib/" >> /etc/ld.so.conf
openssl到此升级成功
标签:
原文地址:http://www.cnblogs.com/ylqh/p/5893685.html