1) 安装ACTIVESTATE的PERL
可以到
http://www.activestate.com/activeperl/downloads下载各种OS下的编译好的PERL包,
可以直接下载TAR格式的,解压执行安装脚本后
2)配置环境变量
[root@localhost ~]# vi /etc/profile.d/perl.sh
设置环境变量:内容如下:(本人的ActivePerl是安装在opt目录下)
#set perl environment
#set perl environment
PERL5LIB=/opt/ActivePerl-5.10/lib:/opt/ActivePerl-5.10/site/lib
PATH=/opt/ActivePerl-5.10/bin:/opt/ActivePerl-5.10/site/bin:$PATH
export PERL5LIB PATH
[root@localhost ~]# source /etc/profile.d/perl.sh
bash: /root: is a directory
[root@localhost ~]# echo $PERL5LIB
/opt/ActivePerl-5.10/lib
[root@localhost ~]# perl -v
This is perl, v5.10.1 built for x86_64-linux-thread-multi
(with 2 registered patches, see perl -V for more detail)
Copyright 1987-2009, Larry Wall
Binary build 1006 [291086] provided by ActiveState http://www.ActiveState.com
Built Aug 24 2009 13:44:06
Perl may be copied on
ly under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
评论