gnc-prices is toast?

James LewisMoss jimdres@mindspring.com
16 Nov 2000 23:36:10 -0500


>>>>> On Thu, 16 Nov 2000 21:48:22 -0600, Jeff Clark <jeffclark@linuxfan.com> said:

 Jeff> I've just spent the last six weeks converting all my data from
 Jeff> M$Money99 to gnucash.  I undertook this little exercise 'cause
 Jeff> the "timebomb" in Money appears to have gone off (I can no
 Jeff> longer download stock and mutual fund prices).

 Jeff> Now that I've got (almost) everything converted over to
 Jeff> gnucash, I find that gnc-prices doesn't work.  There are few
 Jeff> messages in the archive for this group that exactly match the
 Jeff> problem I'm having, but I didn't see any useful solution posted
 Jeff> there.  One message said to use the version from
 Jeff> www.gnucash.org instead of the Helixcode version.  I've got
 Jeff> gnucash-1.4.8-1 (and 1.4.7) which I downloaded from
 Jeff> www.gnucash.org, and here's what happens when I run gnc-prices:

 Jeff> nogates 98> gnc-prices ~/test.xac Can't locate LWP/UserAgent.pm
 Jeff> in @INC (@INC contains: /usr/local/share/gnucash/perl
 Jeff> /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
 Jeff> /usr/lib/perl5/site_perl/5.005/i386-linux
 Jeff> /usr/lib/perl5/site_perl/5.005 .) at
 Jeff> /usr/local/share/gnucash/perl/Quote.pm line 68.  BEGIN
 Jeff> failed--compilation aborted at
 Jeff> /usr/local/share/gnucash/perl/Quote.pm line 68.  BEGIN
 Jeff> failed--compilation aborted at /usr/local/bin/gnc-prices line
 Jeff> 22.

 Jeff> That's easy enough to fix: just add "use
 Jeff> '/usr/lib/perl5/site_perl/LWP';" and "use UserAgent" to the
 Jeff> beginning of gnc-prices, but then it complains about not being
 Jeff> able to find HTTP/Date.pm (even though that file IS in
 Jeff> /usr/lib/perl5/site_perl/HTTP and I've added that directory to
 Jeff> @INC as well).

Well the problem is that the @INC path includes
/usr/lib/perl5/site_perl/5.005/i386-linux and
/usr/lib/perl5/site_perl/5.005, but it doesn't include
/usr/lib/perl5/site_perl which is where everything is.

How about instead of the changes you have made just add a "use lib
'/usr/lib/perl5/site_perl';" instead?  Does this make things work any
better?

Jim

-- 
@James LewisMoss <dres@debian.org>      |  Blessed Be!
@    http://jimdres.home.mindspring.com |  Linux is kewl!
@"Argue for your limitations and sure enough, they're yours." Bach