1 更新CPAN
>perl -MCPAN -e shell cpan>install Bundle::CPAN cpan>q
修改CPAN源
perl -p -i -e "s#urllist.*#urllist' => [q[http://mirrors.aliyun.com/CPAN/], q[http://mirrors.163.com/CPAN/]],#" /usr/share/perl5/CPAN/Config.pm
2 安装/更新 Module::Build,并设置为默认的安装工具
>cpan cpan>install Module::Build cpan>o conf prefer_installer MB cpan>o conf commit cpan>q
3 安装expat library
>cpan cpan>o conf makepl_arg "EXPATLIBPATH=/non-standard/lib EXPATINCPATH=/non-standard/include" cpan>o conf commit
4 使用最简易的方法安装bioperl
1.到http://www.bioperl.org/wiki/Getting_BioPerl下载最新的源码包
$ wget -c http://bioperl.org/DIST/BioPerl-1.6.1.tar.bz2
2.解压缩文件,并改变目录到解压缩的文件夹中
$ tar jxvf BioPerl-1.6.1.tar.bz2 $ cd BioPerl-1.6.1
3.安装bioperl
>perl Build.PL >./Build test >./Build install (需要在perl5/site_perl/source中有写权限)
5 使用CPAN shell来安装BioPerl
1.打开cpan
>perl -MCPAN -e shell >cpan
2.查看安装的BioPerl版本很文件
cpan>d /bioperl/
3. 安装BioPerl
cpan>install C/CJ/CJFIELDS/BioPerl-1.6.1.tar.gz cpan>force install C/CJ/CJFIELDS/BioPerl-1.6.1.tar.gz (强制安装)
6 编译安装
perl Makefile.PL # makes the system specific makefile make # builds all the libaries make test # runs a short test make install # installs the package correctly.