View previous topic :: View next topic |
Author |
Message |
ajaustin n00b
Joined: 18 Oct 2002 Posts: 38 Location: Surrey UK
|
Posted: Fri Oct 18, 2002 11:19 pm Post subject: cannot run gentoo-stats |
|
|
when i try to run gentoo-stats i get the following error:
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i586-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i586-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at /usr/sbin/gentoo-stats line 6.
BEGIN failed--compilation aborted at /usr/sbin/gentoo-stats line 6.
i tried:
emerge unmerge perl
emerge perl
which re-compiled perl but i still get the same error trying to run gentoo-stats
any ideas what's wrong?
regards, Tony |
|
Back to top |
|
|
NewbieV n00b
Joined: 09 Oct 2002 Posts: 1
|
Posted: Sat Oct 19, 2002 6:34 pm Post subject: a possible answer (from another newbie... YMMV) |
|
|
I had the exact same problem with gentoo-stats, and tried 'emerge --update gentoo-stats' first. emerge installed the perl_5.6.1-r7 and textutils-2.1 packages.
I tried finding the UserAgent.pm file, and found it in what looks like another copy of the Perl directory: '/usr/lib/site_perl/...' instead of 'usr/lib/perl5/...'
I ran 'cp -r /usr/lib/site_perl/ /usr/lib/perl5/', and that seems to have worked: gentoo-stats ran without an error.
Anyone: did I trash Perl in the process?
Victor |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sat Oct 19, 2002 6:52 pm Post subject: |
|
|
See if Perl @INC helps. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
ajaustin n00b
Joined: 18 Oct 2002 Posts: 38 Location: Surrey UK
|
Posted: Mon Oct 21, 2002 7:45 pm Post subject: |
|
|
Thanks for the replies.
I solved the problem by creating a file /etc/env.d/06perl with one line:
Quote: | PERL5LIB='/usr/lib/site_perl/5.6.1' |
|
|
Back to top |
|
|
|