我正在尝试让 biotools 在我的 Mac 上运行,以便我可以运行一些使用 Bio::DB::Sam 的 Perl5 代码,但我遇到了困难。
Mac OS X 10.10.4
perl 5.18.2
按照安装说明升级 CPAN
'brew install expat' 告诉我 expat-2.1.0_1 已经安装
'sudo perl -MCPAN -e shell'
'安装 CJFIELDS/BioPerl-1.6.924.tar.gz'
“您要运行 Bio::DB::GFF 还是 Bio::DB::SeqFeature::Store 实时数据库测试?” =>'n'
全部安装
'您是否要运行需要通过 Internet 连接到服务器的测试' => 'n'
最终得到(删除了一些行):
Running Build test
t/Align/AlignStats.t ................... ok
t/Align/AlignUtil.t .................... ok
t/Align/Graphics.t ..................... skipped: The optional module GD (or dependencies thereof) was not installed
...
t/AlignIO/msf.t ........................ ok
t/AlignIO/nexml.t ...................... skipped: The optional module Bio::Phylo (or dependencies thereof) was not installed
t/AlignIO/nexus.t ...................... ok
...
t/Assembly/ContigSpectrum.t ............ ok
t/Assembly/IO/bowtie.t ................. skipped: The optional module Bio::DB::Sam (or dependencies thereof) was not installed
t/Assembly/IO/sam.t .................... skipped: The optional module Bio::DB::Sam (or dependencies thereof) was not installed
t/Assembly/core.t ...................... ok
t/Cluster/UniGene.t .................... ok
之后,我测试:
perl -e "use Bio::DB::Sam;"
并得到:
Can't locate Bio/DB/Sam.pm in @INC (you may need to install the Bio::DB::Sam module) (@INC contains: /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2/darwin-thread-multi-2level /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
从 GitHub 克隆 bioperl-live(同步到修订版 73c446c69a77)并尝试以这种方式安装时,我得到了相同的结果。
请注意,我通过以下方式安装了 samtools 0.1.18(以匹配我们集群上的版本):
下载 .tar.gz
运行“制作”
将“samtools”、“bcftools/bcftools”和“misc/*.pl”复制到我的路径上的 ~/debarcer-packages/bin
之后,我得到了这个:
$ which samtools
/Users/gvwilson/debarcer-packages/bin/samtools
尽管 samtools-0.1.18 Makefile 中有一条规则看起来(也许?)应该产生一个,但这个构建没有产生一个“.so”文件。