一、perl安裝:
1、下載並解壓軟件:tar zxvf perl-5.24.0.tar.gz
2、運行./configure.gnu -help查看幫助,運行./configure.gnu -des -Dprefix=/usr/local/perl -Dusethreads -Uversiononly設置源碼
3、編譯及安裝 make&make install
4、備份舊perl,替換新perl
mv /usr/bin/perl /usr/bin/perl.bak
ln -s /usr/local/perl/bin/perl /usr/bin/perl
5、查看perl版本及位置
which is perl;whereis perl;perl -v
--------------------------------------------------------------------------------------------------------------------------------
二、openssl 安裝:
1、下載並解壓軟件:tar zxvf openssl-1.1.0b.tar.gz
2、編譯並安裝
# ./config
# make&make install ----make之后,可用make test檢查編譯是否正確
3、備份舊openssl,替換新openssl
# mv /usr/bin/openssl /usr/bin/openssl_bak
# ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
4、查看openssl版本及位置
which is openssl;whereis openssl;openssl version
--------------------------------------------------------------------------------------------------------------------------------
tips 1:
perl:一般,“Perl”是指語言本身,而“perl”指程序運行的解釋器
openssl:OpenSSL是一個開源項目,為傳輸層安全(TLS)和安全套接字層(SSL)協議。它也是一個通用的密碼庫。
OpenSSL is an open source project that provides a toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols.It is also a general-purpose cryptography library.
tips 2:
環境變量:優先搜尋前面目錄,使用前面目錄的軟件。
軟鏈接:ln -s