linux下编译安装perl(5.10.0)
2008-09-28 11:58
295 查看
本机的系统为centos4.5.想体验一下最新版本
下载地址:
http://www.cpan.org/src/README.html
下载链接:
http://www.cpan.org/src/perl-5.10.0.tar.gz
下载方式不用说了吧,各显神通,笔者习惯用wget.所以wget http://www.cpan.org/src/perl-5.10.0.tar.gz .
下载完以后解压安装
#tar zxvf perl-5.10.0.tar.gz
#cd perl-5.10.0
#./Configure -des -Dprefix=/usr/local/perl
参数-Dprefix指定安装目录为/usr/local/perl
#make
#make test
#make install
如果这个过程没有错误的话,那么恭喜你安装完成了.是不是很简单?
接下来替换系统原有的perl,有最新的了咱就用嘛.
#mv /usr/bin/perl /usr/bin/perl.bak
#ln -s /usr/local/perl/bin/perl /usr/bin/perl
#perl -v
This is perl, v5.10.0 built for i686-linux
Copyright 1987-2007, Larry Wall
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.
恩,如果你那执行perl -v 和我的提示一样的话.就是安装成功了
然后就可以了用它来安装一些其它你需要的perl模块了
#perl -MCPAN -e shell
第一次执行的话,会提示安装cpan并要求连接网络下载最新的模块列表.然后就可以安装东西了
cpan[1]> install DBI
是不是很简单呢.
本文出自 “rainbird” 博客,谢绝转载!
下载地址:
http://www.cpan.org/src/README.html
下载链接:
http://www.cpan.org/src/perl-5.10.0.tar.gz
下载方式不用说了吧,各显神通,笔者习惯用wget.所以wget http://www.cpan.org/src/perl-5.10.0.tar.gz .
下载完以后解压安装
#tar zxvf perl-5.10.0.tar.gz
#cd perl-5.10.0
#./Configure -des -Dprefix=/usr/local/perl
参数-Dprefix指定安装目录为/usr/local/perl
#make
#make test
#make install
如果这个过程没有错误的话,那么恭喜你安装完成了.是不是很简单?
接下来替换系统原有的perl,有最新的了咱就用嘛.
#mv /usr/bin/perl /usr/bin/perl.bak
#ln -s /usr/local/perl/bin/perl /usr/bin/perl
#perl -v
This is perl, v5.10.0 built for i686-linux
Copyright 1987-2007, Larry Wall
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.
恩,如果你那执行perl -v 和我的提示一样的话.就是安装成功了
然后就可以了用它来安装一些其它你需要的perl模块了
#perl -MCPAN -e shell
第一次执行的话,会提示安装cpan并要求连接网络下载最新的模块列表.然后就可以安装东西了
cpan[1]> install DBI
是不是很简单呢.
本文出自 “rainbird” 博客,谢绝转载!
相关文章推荐
- boost 1_49_0 在linux 下的 编译 安装
- linux 编译安装php及编译安装mysql常见错误总结及解决办法
- 开发人员学Linux(9):CentOS7编译安装Git-2.13.1及使用
- perl编译安装注意事项
- linux 下 SpiderMonkey 1.7.0 编译和安装
- Linux ffmpeg的安装编译过程
- linux下编译安装
- 使用autotools工具用configure、make、make install编译安装linux工程的详细步骤
- Linux环境源码编译安装SVN
- Linux下源码编译安装Mysql
- 开发人员学Linux(6):CentOS7编译安装MySQL5.17.8多实例及主从复制
- ceph存储 Linux 编译安装Boost
- Linux下源码编译MySQL 5.5 与安装程全记录
- Linux(centos)下mysql编译安装教程
- linux 卸载编译安装的软件
- [转]Linux编译和安装boost库
- 【linux】Ubuntu下自己编译安装和卸载软件
- Linux源码安装mysql 5.6.12 (cmake编译)
- wdOS系统下源码编译安装LNAMP(linux+nginx+apache+mysql+php)
- Linux下 PostgreSQL 编译安装