Question: Homer error "" : Can't locate in @INC
gravatar for scheme4193
9 months ago by
scheme419370 wrote:

Hey everyone. I stuck an error when running homer script .

The error content is like this.

Can't locate in @INC (you may need to install the HomerConfig module)

BEGIN failed--compilation aborted at /path-to-homer-bin/ line 22.

From this error, I thought I failed to install homer properly, but I installed homer like this.

wget & perl -install & perl -install mm10

If anyone knows the solution, please let me know ! Thanks.

ADD COMMENTlink modified 9 months ago by Mensur Dlakic7.3k • written 9 months ago by scheme419370

Just a guess but I would remove these & since this sends all processes to background while starting them simultaneously. Install the basic Homer first, wait until finished properly, then install additional stuff like annotations for your organism. Do things sequentially but properly. If you want this sequentially this would be &&, not &. Still do it manually, typing in one command after the other and check the log messages for each step.

ADD REPLYlink modified 9 months ago • written 9 months ago by ATpoint42k
gravatar for Mensur Dlakic
9 months ago by
Mensur Dlakic7.3k
Mensur Dlakic7.3k wrote:

The way you installed the program was most likely not system-wide. Just like shell needs the $PATH variable to know when to look for executable programs, perl needs to be told via $PERL5LIB variable where to look for modules. How to set this variable is explained here.

You can try to find by typing locate If that actually gives you a directory where this module resides, that directory needs to be added to the $PERL5LIB variable. For most local installations, that would be either $HOME/perl/lib/perl5 or $HOME/perl/share/perl5. It is not a bad idea to add those two locations to $PERL5LIB no matter what.

PS If you have sudo privileges, you could reinstall the whole thing as root user and the modules will probably placed into a directory that is already included in $PERL5LIB.

ADD COMMENTlink modified 9 months ago • written 9 months ago by Mensur Dlakic7.3k

After fighting the error, I finally found the cause.

In script, there are 2 lines in top of the file. use lib "/homer-directory/.//bin"; my $homeDir = "/homer-directory/./"; However, this homer-directory is set as compiled directory. After compiled homer, I move program directory, so is has changed.

Thank you for your comment !

ADD REPLYlink written 9 months ago by scheme419370

Would you mind giving a detailed step? I am a newbie and use conda. Thanks in advance.

ADD REPLYlink written 4 weeks ago by changshengw60
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1833 users visited in the last hour