简体   繁体   English

在MySQL服务器中安装Bioperl库

[英]Bioperl library installation in mysql server

I installed Bioperl and works correctly. 我安装了Bioperl并正常工作。 then installed Bio::Tools::Run::Phylo::Phyml and it works good from terminal. 然后安装Bio :: Tools :: Run :: Phylo :: Phyml,并且在终端上运行良好。

But when I call same script contains it from a browser to using CGI method, I get this error: 但是,当我从浏览器到使用CGI方法调用相同的脚本时,出现此错误:

Can't locate Bio/Tools/Run/Phylo/Phyml.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . /etc/apache2) at /var/www/Adol/mafToPhyML1.pl line 14.\\nBEGIN failed--compilation aborted at /var/www/Adol/mafToPhyML1.pl line 14. 无法在@INC中找到Bio / Tools / Run / Phylo / Phyml.pm(@INC包含:/ etc / perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14。 2 / usr / lib / perl5 / usr / share / perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 / usr / local / lib / site_perl。/ etc / apache2)在/ var / www / Adol /mafToPhyML1.pl第14行。\\ nBEGIN失败-在/var/www/Adol/mafToPhyML1.pl第14行中中止了编译。

I got this message from error.log 我从error.log收到此消息

This post is similar to your question. 这篇文章与您的问题类似。 You need to properly set @INC in your cgi script. 您需要在cgi脚本中正确设置@INC Add a use lib pragma to your cgi script with the directory that contains the Bio directory of where your Phyml.pm is located. use lib包含Phyml.pm所在的Bio目录的目录将use lib pragma添加到您的cgi脚本中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM