SUSE linux升級perl及openssl


一、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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM