Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have successfully (I think) installed BioPerl. When I try to use the objects I get an error "cannot locate Bio.seq.pm in @INC ....."

The "build" programs put everything in the "download" directory.I am having trouble moving the files to /usr/bin and suspect that maybe adding the "download" directory to the @INC paths might be easier.
help please...john

share|improve this question
1  
How did you install BioPerl? Did you install via sudo apt-get install bioperl? What are you using to build programs? – maggotbrain Dec 5 '12 at 6:04

1 Answer

@INC is defined when perl is compiled and it is embedded in the binary code.

The @inc array can be changed by modifying the PERL5LIB variable, from the command line, like so:

export PERL5LIB=/home/foobar/code

You can add this to .bashrc or .bash_profile(the preferred location) to make this permanent

Additionally, you can use the following in your script code:

use lib '/home/foobar/code';
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.