gnc-prices complains can't load LWP/UserAgent.pm

Matthew Vanecek linux4us@home.com
Wed, 16 Aug 2000 22:57:58 -0500


Jason Rennie wrote:
> 
> maynard@jmg.com said:
> > [maynard@marquez maynard]$ gnc-prices Can't locate LWP/UserAgent.pm in
> > @INC (@INC contains: /usr/share/gnucash/perl  /usr/lib/perl5/5.00503/
> > i386-linux /usr/lib/perl5/5.00503  /usr/lib/perl5/site_perl/5.005/
> > i386-linux /usr/lib/perl5/site_perl/5.005 .) at  /usr/share/gnucash/
> > perl/Quote.pm line 68.
> 
> I actually have the same problem.  One fix is to set the PERLLIB
> environment variable to include /usr/lib/perl5/site_perl (the RPM install
> directory for LWP/UserAgent.pm).
> 
> There is definitely a more serious problem lurking, though as perl should
> have its defaults set to look in /usr/lib/perl5/site_perl if standard RH
> packages are going to be putting perl modules there.  Actually, my guess
> is that the RPM that includes LWP/UserAgent.pm should be installed to
> /usr/lib/perl5/site_perl/5.005 instead of /usr/lib/perl5/site_perl
> 

I get:

me2v@reliant me2v $ locate LWP/UserAgent
/usr/lib/perl5/site_perl/5.005/LWP/UserAgent.pm

from a RH system.  I've got the same problem with a different module in
1.4.2:
 
me2v@reliant account $ gnc-prices myaccts.xac
Can't locate loadable object for module gnucash in @INC (@INC contains:
/usr/lib/gnucash/perl /usr/share/gnucash/perl
/usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005
.) at /usr/bin/gnc-prices line 20
BEGIN failed--compilation aborted at /usr/bin/gnc-prices line 20.
me2v@reliant account $ locate gnucash.pm
/usr/share/gnucash/perl/gnucash.pm

Plese take note that /usr/share/gnucash/perl is in the @INC above, and
gnucash.pm lives there.

I rather suspect a problem with gnc-prices or the Perl modules that come
with gnucash, since all my other Perl stuffs work, and have worked,
fine.  And gnc-prices 1.4.0 worked fine, as well.

Unfortunately, my post about this issue went unnoticed.
-- 
Matthew Vanecek
perl -e 'print
$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
********************************************************************************
For 93 million miles, there is nothing between the sun and my shadow
except me.
I'm always getting in the way of something...