方法一:
到 https://www.cpan.org/ 搜尋要安裝的 module
以 IO::Socket::SSL 為例
https://metacpan.org/dist/IO-Socket-SSL/view/lib/IO/Socket/SSL.pod
左側欄位有下載連結,下載及安裝過程如下
# wget https://cpan.metacpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.079.tar.gz
# tar -zxpBvf IO-Socket-SSL-2.079.tar.gz
# cd IO-Socket-SSL-2.079
# perl Makefile.PL
# make
# make install
方法二:
# perl -MCPAN -e shell
cpan[1]> install IO::Socket::SSL
或是
cpan[1]> notest install IO::Socket::SSL
方法三:
# cpan IO::Socket::SSL
如果要安裝特定版本的 module
1. 搜尋適合的版本 https://cpan.metacpan.org/authors/id/S/SU/SULLR/ 下載安裝
2.
# perl -MCPAN -e shell
cpan[1]> notest install SULLR/IO-Socket-SSL-2.077.tar.gz
3.
# cpan SULLR/IO-Socket-SSL-2.077.tar.gz
留言列表