gnc-prices is toast?

Jeff Clark jeffclark@linuxfan.com
Fri, 17 Nov 2000 00:54:25 -0600


Dave Peticolas wrote:
> 
> I use gnc-prices on 1.4.8, so I know it works, without adding in
> the extra lines. You might try upgrading the Bundle::LWP and
> HTTP::Date from cpan (that's how I get' em).

Well, I've been on a merry little chase for various Perl modules.  So
far, I've downloaded and installed:

  HTML-Parser-3.13
  HTML-Tagset
  MIME-Base64-2.11
  URI-1.09
  perl-libwww-perl-5.43-2.i386.rpm

After each one I get a little bit closer, but not quite all the way
there.


James LewisMoss wrote:

> 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?

I *did* do that; sorry I didn't make that clear in my earlier message.

In addition to installing all the modules listed above, I've added the
following to be beginning of /usr/local/bin/gnc-prices:

	# Added [jlc:20001117.0035CST]
	use lib '/usr/share/gnucash/perl';
	use lib '/usr/lib/perl5/site_perl';

The /usr/share/gnucash/perl is necessary to pick up "gnucash.pm".  The
gnucash-1.4.8-1 "i386" rpm installs that file in
/usr/share/gnucash/perl.  I'm curious as to how Dave was able to get it
running without adding a "use" for this directory to gnc-prices?

Anyway, when I now run gnc-prices, I get the following:

nogates 86> gnc-prices ~/test.xac 
Can't locate loadable object for module gnucash in @INC (@INC contains:
/usr/local/lib/gnucash/perl /usr/local/share/gnucash/perl
/usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_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/local/bin/gnc-prices line 28
BEGIN failed--compilation aborted at /usr/local/bin/gnc-prices line 28.
nogates 87> 

So, where can I find the "loadable object for module gnucash"?

-- 
Jeff Clark                         | mailto:jeffclark@linuxfan.com
"Too soon old, too late smart."    | http://www.linuxfan.com/~jeffclark
------------------------------------------------------------------------------
Microsoft's success proves "You can fool some of the people, all of the
time."