为什么 Eclipse 无法识别 $PERL5LIB?
我遵循 BioPerl 手册:我克隆了 bioperl-live
在 ~/src
下,然后将以下行添加到我的 ~/.profile
(我使用的是 Ubuntu):
export PERL5LIB="$HOME/src/bioperl-live:$PERL5LIB"
但是,BioPerl 模块在 Eclipse 中无法识别,例如:
Can't locate Bio/Tools/GFF.pm in @INC (@INC contains:
/home/dave/workspace/.metadata/.plugins/org.epic.debug
/home/dave/workspace_workspace/mars/scripts/lib
/etc/perl
/usr/local/lib/perl/5.10.1
/usr/local/share/perl/5.10.1
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.10
/usr/share/perl/5.10
/usr/local/lib/site_perl )
我想念什么?
I followed BioPerl manual: I cloned a fresh copy of bioperl-live
under ~/src
then added the following line to my ~/.profile
(I'm using Ubuntu):
export PERL5LIB="$HOME/src/bioperl-live:$PERL5LIB"
However,BioPerl modules are not recognized in Eclipse, e.g.:
Can't locate Bio/Tools/GFF.pm in @INC (@INC contains:
/home/dave/workspace/.metadata/.plugins/org.epic.debug
/home/dave/workspace_workspace/mars/scripts/lib
/etc/perl
/usr/local/lib/perl/5.10.1
/usr/local/share/perl/5.10.1
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.10
/usr/share/perl/5.10
/usr/local/lib/site_perl )
What do I miss?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
登录时会读取
~/.profile
。要在下次登录之前使用该设置,请启动终端,运行export PERL5LIB=...
行,然后从该终端启动 Eclipse 或任何其他使用 BioPerl 的程序。~/.profile
is read when you log in. To use that setting until the next time you log in, start a terminal, run theexport PERL5LIB=…
line, then start Eclipse or any other BioPerl-using program from that terminal.