wget http://www.cpan.org/src/5.0/perl-5.8.1.tar.gz
tar zxvf perl-5.8.1.tar.gz
cd perl-5.8.1
rm -f config.sh Policy.sh
sh ./Configure -des -Dusethreads
make
make test
make install

wget http://www.cpan.org/src/5.0/perl-5.10.1.tar.gz
tar zxvf perl-5.10.1.tar.gz
cd perl-5.10.1
rm -f config.sh Policy.sh
sh ./Configure -des -Dusethreads
make
make test
make install


cd /usr/bin/
cp -rp perl perl.old
cp -rp cpan cpan.old
ln -sf /usr/local/bin/perl perl
ln -sf /usr/local/bin/cpan cpan


http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/Archive-Zip-1.57.tar.gz
http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/Compress-Raw-Zlib-2.069.tar.gz
http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/libwww-perl-6.15.tar.gz
http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/HTTP-Message-6.11.tar.gz
http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTTP-Date-6.02.tar.gz
http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Encode-Locale-1.05.tar.gz
http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.636.tar.gz
http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.033.tar.gz


http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/Archive-Zip-1.57.tar.gz http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/Compress-Raw-Zlib-2.069.tar.gz http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/libwww-perl-6.15.tar.gz http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/HTTP-Message-6.11.tar.gz http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTTP-Date-6.02.tar.gz http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Encode-Locale-1.05.tar.gz http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.636.tar.gz http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.033.tar.gz

for x in http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/Archive-Zip-1.57.tar.gz http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/Compress-Raw-Zlib-2.069.tar.gz http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/libwww-perl-6.15.tar.gz http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/HTTP-Message-6.11.tar.gz http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTTP-Date-6.02.tar.gz http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Encode-Locale-1.05.tar.gz http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.636.tar.gz http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.033.tar.gz
do
    cd /root/
    ddd="wget $x"
    file=$(basename $x)
    name=$(echo $file| sed 's/.tar.gz//g')
    aaa="tar zxvf $file"
    bbb="cd $name"
    ccc="/usr/local/bin/perl Makefile.PL ; make ; make install"
    echo $ddd
    echo $aaa
    echo $bbb
    echo $ccc
    eval $ddd
    eval $aaa
    eval $bbb
    eval $ccc
done


for x in Apache::Htpasswd Archive::Zip base Carp constant Cwd Data::Dumper Date::Calc Date::Format Date::Parse DBI Digest::MD5 Email::Address Encode File::Basename File::Copy File::Find File::Path improperly IO::Socket JSON LWP::Simple LWP::UserAgent Mail::Box::Manager Mail::Message MIME::Base64 MIME::Lite MIME::QuotedPrint Net::SMTP Net::SMTP_auth Proc::WaitStat Sys::Hostname threads threads::shared Time::Local warnings XML::Simple; do echo $x --------------------------; /usr/local/bin/perl -MCPAN -e "install $x"; done


cd /usr/bin/
rm -f cpan perl
cp -rp cpan.old cpan
cp -rp perl.old perl
ll /usr/bin/perl /usr/bin/cpan

cd /usr/local/bin/; mv perl perl.old ; mv cpan cpan.old
ll /usr/local/bin/perl*
最後修改日期: 2017 年 08 月 19 日

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。