Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cannot run gentoo-stats
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ajaustin
n00b
n00b


Joined: 18 Oct 2002
Posts: 38
Location: Surrey UK

PostPosted: Fri Oct 18, 2002 11:19 pm    Post subject: cannot run gentoo-stats Reply with quote

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
View user's profile Send private message
NewbieV
n00b
n00b


Joined: 09 Oct 2002
Posts: 1

PostPosted: Sat Oct 19, 2002 6:34 pm    Post subject: a possible answer (from another newbie... YMMV) Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sat Oct 19, 2002 6:52 pm    Post subject: Reply with quote

See if Perl @INC helps.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
ajaustin
n00b
n00b


Joined: 18 Oct 2002
Posts: 38
Location: Surrey UK

PostPosted: Mon Oct 21, 2002 7:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum