[Top] [All Lists]

Re: explanation of @INC

Subject: Re: explanation of @INC
From: Gunnar Hjalmarsson
Date: Fri, 23 Jan 2009 18:48:08 +0100
Newsgroups: perl.beginners

Scott Haneda wrote:
On Jan 23, 2009, at 1:01 AM, Gunnar Hjalmarsson wrote:
Scott Haneda wrote:
ASSP required about 15 perl modules, I installed them, or wrote new portfiles for them to get them installed. I have all requirements for ASSP installed. I edit the ASSP source files to change the first line from:
#!/usr/bin/perl --
#!/opt/local/bin/perl --
When I run ASSP, it tells me three ports are not installed. One is Email::Valid, which should serve well enough as a way for me to learn how to solve this.
Try running:
/usr/bin/perl -MEmail::Valid -e 'print $INC{"Email/"}'
$/usr/bin/perl -MEmail::Valid -e 'print $INC{"Email/"}'
Can't locate Email/ in @INC (@INC contains: /System/Library/Perl/5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 /Library/Perl/5.8.1 .).
BEGIN failed--compilation aborted.


/opt/local/bin/perl -MEmail::Valid -e 'print $INC{"Email/"}'
$/opt/local/bin/perl -MEmail::Valid -e 'print $INC{"Email/"}'

and let us know the results.
I am not entirely sure what that all means, but I think it is telling me
there is in fact no Email::Valid in the default install, but there is
one in the /opt/local/bin/perl one.
Yes, and that indicates that ASSP is still running the default Perl
install, even if you told us that you edited the shebang line of the
ASSP source files. Maybe you missed some file(s), maybe the command that
invokes ASSP does not rely on the shebang line(s) to determine which of
the Perl installs to use.
Gunnar Hjalmarsson

<Prev in Thread] Current Thread [Next in Thread>