[TriLUG] Perl include path problem

Brent Verner brent at rcfile.org
Mon Apr 28 15:38:47 EDT 2003


[2003-04-28 15:06] Jeremy Portzer said:
| Anyone seen problems with Perl respecting the -I option for include
| path?  It appears to work fine with "-V" but then barfs when I actually
| try to run a Perl script.
| 
| For example, I run this:
| 
| bash$ /home/foo/apps/perl/bin/perl -I/home/foo/apps/perl/lib -V
| [snippity-snip]
|   @INC:
|     /home/foo/apps/perl/lib/5.6.1/i686-linux
|     /home/foo/apps/perl/lib/5.6.1
|     /home/foo/apps/perl/lib
|     /usr/local/foo/apps/perl/lib/5.6.1/i686-linux
|     /usr/local/foo/apps/perl/lib/5.6.1
|     /usr/local/foo/apps/perl/lib/site_perl/5.6.1/i686-linux
|     /usr/local/foo/apps/perl/lib/site_perl/5.6.1
|     /usr/local/foo/apps/perl/lib/site_perl
|     .
| 
| bash$ /home/foo/apps/perl/bin/perl -I/home/foo/apps/perl/lib
| migration.pl -v
| Can't locate strict.pm in @INC (@INC contains:
| /usr/local/foo/apps/perl/lib/5.6.1/i686-linux
| /usr/local/foo/apps/perl/lib/5.6.1
| /usr/local/foo/apps/perl/lib/site_perl/5.6.1/i686-linux
| /usr/local/foo/apps/perl/lib/site_perl/5.6.1
| /usr/local/foo/apps/perl/lib/site_perl .) at migration.pl line 9.
| BEGIN failed--compilation aborted at migration.pl line 9.

I suspect the migrate.pl script is mucking with @INC in a BEGIN
block.

If it isn't, perhaps a rebuild of perl is in order :-)

  b

-- 
"Develop your talent, man, and leave the world something. Records are 
really gifts from people. To think that an artist would love you enough
to share his music with anyone is a beautiful thing."  -- Duane Allman



More information about the TriLUG mailing list