码迷,mamicode.com
首页 > 系统相关 > 详细

ACTIVEPERL在LINUX下的安装

时间:2015-08-28 15:38:06      阅读:361      评论:0      收藏:0      [点我收藏+]

标签:linux   安装   perl   activeperl   path   

参考: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.

版权声明:本文为博主原创文章,未经博主允许不得转载。

ACTIVEPERL在LINUX下的安装

标签:linux   安装   perl   activeperl   path   

原文地址:http://blog.csdn.net/jonathanxqs/article/details/48052327

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!