Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9067 - Default perl @INC is wrong (/usr/lib/site_perl/)
Summary: Default perl @INC is wrong (/usr/lib/site_perl/)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
: 4192 7289 7874 7960 8154 8349 8544 8725 8772 8939 8958 9194 9390 9671 10031 10054 10058 10063 10231 10543 10618 10797 11346 11753 11993 13049 13106 13125 13128 13147 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-10-13 06:07 UTC by Ole Tange
Modified: 2003-02-09 02:32 UTC (History)
30 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ole Tange 2002-10-13 06:07:34 UTC
I have just done: 
 
emerge perl 
emerge Inline 
 
$ perl -e 'use Inline C' 
Can't locate Inline.pm in @INC (@INC contains: 
/usr/lib/site_perl/5.6.1/i586-linux /usr/lib/perl5/5.6.1/i686-linux 
/usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux 
/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at -e line 1. 
BEGIN failed--compilation aborted at -e line 1. 
 
It seems perl's @INC need to include /usr/lib/site_perl/5.6.1 too
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-13 07:46:17 UTC
the -r8 for perl-5.6.1 should sort this problem out. please confirm this.
Comment 2 SpanKY gentoo-dev 2002-10-13 12:08:36 UTC
i thought /usr/lib/site_perl/ was an invalid location to install perl modules 
to ... we've been posting modules that do that as bugs which mcummings has been 
fixing ...
Comment 3 SpanKY gentoo-dev 2002-10-13 13:07:19 UTC
not yet there killer ;) 
Comment 4 SpanKY gentoo-dev 2002-10-13 15:23:11 UTC
*** Bug 7874 has been marked as a duplicate of this bug. ***
Comment 5 SpanKY gentoo-dev 2002-10-13 15:24:30 UTC
*** Bug 8772 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2002-10-13 15:25:30 UTC
*** Bug 8725 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2002-10-13 15:27:02 UTC
*** Bug 8939 has been marked as a duplicate of this bug. ***
Comment 8 SpanKY gentoo-dev 2002-10-13 15:27:39 UTC
*** Bug 8958 has been marked as a duplicate of this bug. ***
Comment 9 SpanKY gentoo-dev 2002-10-13 15:28:57 UTC
*** Bug 7289 has been marked as a duplicate of this bug. ***
Comment 10 SpanKY gentoo-dev 2002-10-13 15:29:28 UTC
*** Bug 8349 has been marked as a duplicate of this bug. ***
Comment 11 SpanKY gentoo-dev 2002-10-13 15:30:00 UTC
*** Bug 7960 has been marked as a duplicate of this bug. ***
Comment 12 SpanKY gentoo-dev 2002-10-13 15:30:09 UTC
*** Bug 8154 has been marked as a duplicate of this bug. ***
Comment 13 SpanKY gentoo-dev 2002-10-13 15:31:10 UTC
*** Bug 8544 has been marked as a duplicate of this bug. ***
Comment 14 SpanKY gentoo-dev 2002-10-13 15:32:43 UTC
*** Bug 4192 has been marked as a duplicate of this bug. ***
Comment 15 SpanKY gentoo-dev 2002-10-13 15:34:20 UTC
alrighty people, here is the solution to all your 'not found in @INC' errors: 
 
emerge rsync 
emerge perl 
emerge <pkg that is broken> 
 
basically -r8 (and beyond) of perl should throw in the fix for all these nasty 
bugs 
Comment 16 Marcio Teixeira 2002-10-13 22:51:28 UTC
So, wouldn't it make sense to make the packages which exhibit the problem  depend on at least "sys-devel/perl/perl-5.6.1-r8"? That way people who tried  to emerge said packages would be forced to upgrade perl? 
Comment 17 Adam Mercer 2002-10-15 02:08:51 UTC
Tried doing a fresh install of 1.4rc1 this morning and got the following error
during perl-5.6.1-r8

Can't locate lib.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.1/i686-linux /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i686-linux /usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl .) at Makefile.PL line 10.
BEGIN failed--compilation aborted at Makefile.PL line 10.
make: *** No rule to make target `install'.  Stop.

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_install, Line -136, Exitcode 2
!!! (no error message)
Comment 18 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-15 05:34:25 UTC

*** This bug has been marked as a duplicate of 9082 ***
Comment 19 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-15 09:49:52 UTC

*** This bug has been marked as a duplicate of 9082 ***
Comment 20 Michael Cummings (RETIRED) gentoo-dev 2002-10-15 10:10:32 UTC
For anyone who was affected by this, I would recommend making sure you have
gentoolkit installed and then performing the following:

emerge `qpkg -nc -I | sed 's/-[0-9].*//g' | sort | uniq | grep "dev-perl"`

This will catch any of the perl modules you have installed and re-emerge them.
This will not help with packages that have internal perl components (like gimp,
for instance), but will with any modules.
Comment 21 SpanKY gentoo-dev 2002-10-16 07:18:55 UTC
*** Bug 9194 has been marked as a duplicate of this bug. ***
Comment 22 SpanKY gentoo-dev 2002-10-20 11:53:38 UTC
*** Bug 9390 has been marked as a duplicate of this bug. ***
Comment 23 Mark Guertin 2002-10-25 15:03:59 UTC
Guys.....


what is going on with perl here... there is no more -r8.. it seems that -r7 now
contains fixes? (I dunno as there is no changelog entry, still says -r8)

There are TONS of people having these problems and if its not revision bumped
they will not get updates... i have personally dealt with this problem
(unkowingly until now) for almost 2 weeks uggg!

can someome PLEASE take care of this, this is a nasty one
Comment 24 SpanKY gentoo-dev 2002-10-25 17:31:06 UTC
*** Bug 9671 has been marked as a duplicate of this bug. ***
Comment 25 Dave Smith (lanalyst) 2002-10-26 05:34:49 UTC
gentoo-stats is also failing on LWP:UserAgent not found.  For a workaround,
/usr/lib/perl5/site_perl/5.6.1/i686-linux is in the @INC but not actually
present: I created a symlink from /usr/lib/site_perl/5.6.1 to it.  

Code:
ln -s /usr/lib/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux

Works okay for now... the fix will probably break it :)
Comment 26 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-30 01:22:03 UTC
the fix was actually to force remerges.  this has been done by up'ing the
-revision numbers for every package in dev-perl.

Comment 27 SpanKY gentoo-dev 2002-10-31 17:16:17 UTC
*** Bug 10031 has been marked as a duplicate of this bug. ***
Comment 28 SpanKY gentoo-dev 2002-11-01 12:48:28 UTC
*** Bug 10054 has been marked as a duplicate of this bug. ***
Comment 29 SpanKY gentoo-dev 2002-11-01 12:54:05 UTC
*** Bug 10058 has been marked as a duplicate of this bug. ***
Comment 30 SpanKY gentoo-dev 2002-11-01 17:34:18 UTC
*** Bug 10063 has been marked as a duplicate of this bug. ***
Comment 31 Jacob Atzen 2002-11-02 03:13:10 UTC
It seems that one may have to unmerge packages before they get placed in the
right location.

After the following:
emerge rsync
emerge perl
emerge `qpkg -nc -I | sed 's/-[0-9].*//g' | sort | uniq | grep "dev-perl"`

CDDB_get was still in /usr/lib/site_perl

After:
emerge unmerge CDDB_get
emerge CDDB_get

It was correctly placed in /usr/lib/perl5/site_perl

Regards
- Jacob
Comment 32 SpanKY gentoo-dev 2002-11-04 21:10:26 UTC
*** Bug 10231 has been marked as a duplicate of this bug. ***
Comment 33 SpanKY gentoo-dev 2002-11-10 22:43:34 UTC
*** Bug 10543 has been marked as a duplicate of this bug. ***
Comment 34 Jason Shoemaker (RETIRED) gentoo-dev 2002-11-11 02:03:21 UTC
Hmm, what about bug #9756? It maynot be the best solution, but it seems to work
for a couple of people that have tested it.

--Kutsuya
Comment 35 SpanKY gentoo-dev 2002-11-12 01:45:55 UTC
*** Bug 10618 has been marked as a duplicate of this bug. ***
Comment 36 Jason Shoemaker (RETIRED) gentoo-dev 2002-11-12 06:05:24 UTC
Opps, got into the wrong bug #. Sorry.
Comment 37 SpanKY gentoo-dev 2002-11-15 19:09:54 UTC
*** Bug 10797 has been marked as a duplicate of this bug. ***
Comment 38 Michael Cummings (RETIRED) gentoo-dev 2002-11-15 19:48:49 UTC
http://cvs.gentoo.org/~mcummings/perl.html 
Comment 39 SpanKY gentoo-dev 2002-11-29 11:39:58 UTC
*** Bug 11346 has been marked as a duplicate of this bug. ***
Comment 40 SpanKY gentoo-dev 2002-12-08 01:21:38 UTC
*** Bug 11753 has been marked as a duplicate of this bug. ***
Comment 41 SpanKY gentoo-dev 2002-12-11 19:55:29 UTC
*** Bug 11993 has been marked as a duplicate of this bug. ***
Comment 42 Henti Smith 2002-12-12 01:44:42 UTC
ok .... finally got mine working ...
Had to unmerge dev-perl/libwww-perl then emerge dev-perl/libwww-perl again
this seems to fix the incorrect files. ran gentoo-stats --new again 
and URI.pm broke. (possible from previos tinkering) unmerge and remerge sorted
that out 
and gentoo-stats --new works fine now .. thanks 

Henti Smith 
Comment 43 SpanKY gentoo-dev 2003-01-01 16:13:52 UTC
*** Bug 13049 has been marked as a duplicate of this bug. ***
Comment 44 SpanKY gentoo-dev 2003-01-02 21:11:08 UTC
*** Bug 13125 has been marked as a duplicate of this bug. ***
Comment 45 SpanKY gentoo-dev 2003-01-02 21:16:33 UTC
*** Bug 13128 has been marked as a duplicate of this bug. ***
Comment 46 SpanKY gentoo-dev 2003-01-03 06:09:14 UTC
*** Bug 13147 has been marked as a duplicate of this bug. ***
Comment 47 SpanKY gentoo-dev 2003-01-03 06:23:16 UTC
*** Bug 13106 has been marked as a duplicate of this bug. ***
Comment 48 SpanKY gentoo-dev 2003-02-09 02:32:13 UTC
*** Bug 15323 has been marked as a duplicate of this bug. ***