Problem about slashes and backslahes in library paths

View: New views
3 Messages — Rating Filter:   Alert me  

Problem about slashes and backslahes in library paths

by MathGon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I installed Perl on Windows and I have problem to access Bioperl libraries.
My scripts are ok, I tried them on an other computer.

The error message is:

Can't locate Bio/PrimarySeq.pm in @INC (@INC contains H:/Perl64/site/lib/
H:Perl64/site.lib .) at H:\script.pl line 10

I tried to solve this problem by mining posts on forums but I didn't manage.

Have you an idea please?
--
View this message in context: http://old.nabble.com/Problem-about-slashes-and-backslahes-in-library-paths-tp26131931p26131931.html
Sent from the Perl - Bioperl-L mailing list archive at Nabble.com.

_______________________________________________
Bioperl-l mailing list
Bioperl-l@...
http://lists.open-bio.org/mailman/listinfo/bioperl-l

Parent Message unknown Re: Problem about slashes and backslahes in library paths

by RobertBradbury :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Oct 30, 2009 at 11:23 AM, MathGon <dfog22@...> wrote:

>
> Can't locate Bio/PrimarySeq.pm in @INC (@INC contains H:/Perl64/site/lib/
> H:Perl64/site.lib .) at H:\script.pl line 10
>
>
Well, you've got a "mixed" pathname in @INC.  Anything that starts with  L:
would be a windows path while the use of forward slashes (/) is a Linux
path.  I'd suggest changing the script (or the environment which sets @INC)
so it uses only Windows or Linux paths.

There may be some Perl scripts that one is supposed to run to setup the @INC
variable correctly for ones current system (presumably depends on the
supplier of Perl for your Windows installation).

Or you could switch to Linux which I would consider to be a much more
Perl/BioPerl friendly environment.  Because, IMO, sticking with Windows is
like boarding the Titanic as it is about to sail out of the harbor.

Robert
_______________________________________________
Bioperl-l mailing list
Bioperl-l@...
http://lists.open-bio.org/mailman/listinfo/bioperl-l

Re: Problem about slashes and backslahes in library paths

by Chris Fields-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Oct 31, 2009, at 8:55 AM, Robert Bradbury wrote:

> On Fri, Oct 30, 2009 at 11:23 AM, MathGon <dfog22@...> wrote:
>
>>
>> Can't locate Bio/PrimarySeq.pm in @INC (@INC contains H:/Perl64/
>> site/lib/
>> H:Perl64/site.lib .) at H:\script.pl line 10
>>
>>
> Well, you've got a "mixed" pathname in @INC.  Anything that starts  
> with  L:
> would be a windows path while the use of forward slashes (/) is a  
> Linux
> path.  I'd suggest changing the script (or the environment which  
> sets @INC)
> so it uses only Windows or Linux paths.

Also, that last directory is a bit odd: H:Perl64/site.lib

Regardless, the message means the perl executable used from command  
line or called from the shebang line can't find BioPerl in @INC.  
Another way to check is using 'perldoc -l Bio::Root::Root'; replace  
Bio::Root::Root with any BioPerl module.  You can set PERL5LIB to  
point at your local BioPerl directory, but for Windows you really  
should install it.  It should work using PPM or CPAN with ActivePerl  
and CPAN with Strawberry Perl.

> There may be some Perl scripts that one is supposed to run to setup  
> the @INC
> variable correctly for ones current system (presumably depends on the
> supplier of Perl for your Windows installation).
>
> Or you could switch to Linux which I would consider to be a much more
> Perl/BioPerl friendly environment.  Because, IMO, sticking with  
> Windows is
> like boarding the Titanic as it is about to sail out of the harbor.
>
> Robert

Ah, let's not start that up here, please?  The more users we have the  
better.  I much prefer to use Ubuntu 9.10 and OS X, but some of the  
devs (me included) have put a decent amount of work trying to get  
things working on WinXP (to the point of having a local VM).

chris
_______________________________________________
Bioperl-l mailing list
Bioperl-l@...
http://lists.open-bio.org/mailman/listinfo/bioperl-l