linux下装openssl

新装了个LINUX机器,运行程序的时候发现没装openssl。

从官网上下载openssi源码,放到linux机器上,我放在home目录下。 命令步骤如下:1:…/openssl-0.9.8c]# ./config –prefix=/usr/local/ssl-0.9.8c shared zlib-dynamic enable-camellia 解释如下:–prefix=/usr/local/ssl-0.9.8c[this is the installation location; default is ‘/usr/local/ssl’ — which we will symlink]shared[in addition to the usual static libraries, create shared libraries] zlib-dynamic[like "zlib", but has OpenSSL load the zlib library dynamically when needed] enable-camellia[enables the symmetric cipher ‘Camellia’ (128-bit, 192-bit, 256-bit key versions), which is now available for royalty-free

use] 2:Configure#: ./config -t3: Build and Install #:make depend #:make#: make test #:make install //测试一下:openssl version 打印:openssl版本,如:OpenSSL 1.0.0-fips 29 Mar 20104:Symlink #:cd /usr/local #:ln -s ssl-0.9.8c ssl5:Update the Run-time Linker Edit /etc/ld.so.conf, add to paths… /usr/local/ssl/lib 6:Update the PATH Edit /root/.bash_profile, add to PATH variable… /usr/local/ssl/bin 7:[sanity check] OpenSSLldd /usr/local/openssl/bin/openssl

少一点预设的期待,那份对人的关怀会更自在

linux下装openssl

相关文章:

你感兴趣的文章:

标签云: