ACTIVEPERL在LINUX下的安装

来源:互联网 发布:易名域名 编辑:程序博客网 时间:2024/05/22 13:24

参考:http://fhqdddddd.blog.163.com/blog/static/18699154200910323316916/

注:具体需要多少版本就装多少的,一般官方linux x86_64的package适应大多数较新linux系统

但是glibc依赖比较重要 5.18 只要2.5  5.20要2.15 

具体情况看官方文档,缺PACKAGE还得补装,亲测可行


1) 安装ACTIVESTATE的PERL

可以到http://www.activestate.com/activeperl/downloads下载各种OS下的编译好的PERL包,

可以直接下载TAR格式的,解压后执行解压文件下面的安装脚本

sh install.sh

即可安装完毕。关于这一点,可以参见解压文件下的README.txt说明文档。

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 only 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.

0 0
原创粉丝点击