gnc-fq-dump isn't happy with Finance::Quote (Mac OS X, MacPorts)

Jim DeLaHunt from.gnucash at jdlh.com
Wed May 20 03:10:02 EDT 2009


Hi, folks:

I'm trying to install Finance::Quote per the instructions at 
"8.6.3.1. Installing Finance::Quote":
<http://svn.gnucash.org/docs/guide/invest-stockprice1.html#invest-stockprice-auto2>

I'm on Mac OS X 10.5.7, and my gnucash and much other software was 
installed via MacPorts. My GnuCash is at 2.2.9, and is the Quartz 
native build (not X11).

I connected to the bin directory containing gnucash, which was /opt/local/bin .
On running "sudo gnc-fq-update", and telling it that yes, I wanted it 
to do automatic configuration, it gave many lines of output.  It 
seemed to be installing everything it wanted.

Then I checked the installation, with gnc-fq-dump. It wasn't happy:

[Macintosh-4:/opt/local/bin] jdlh% gnc-fq-dump
/opt/local/bin/gnc-fq-dump cannot find all the Perl modules needed to run.
You need to install the following Perl modules:
   Finance::Quote
   HTML::TableExtract
   Crypt::SSLeay
   Date::Manip
Use your system's package manager to install them,
or run 'gnc-fq-update' as root.

Running "sudo gnc-fq-update" showed that gnc-fq-update was happy:

[Macintosh-4:/opt/local/bin] jdlh% sudo gnc-fq-update
Password:
CPAN: Storable loaded ok (v2.19)
Going to read /Users/jdlh/.cpan/Metadata
   Database was generated on Tue, 19 May 2009 23:26:58 GMT
LWP is up to date (5.826).
Date::Manip is up to date (5.54).
HTML::Parser is up to date (3.60).
HTML::TableExtract is up to date (2.10).
Crypt::SSLeay is up to date (0.57).
Finance::Quote is up to date (1.16).

Also, I can load the modules directly in Perl.

[Macintosh-4:/opt/local/bin] jdlh% perl -MHTML::TableExtract -e 1
[Macintosh-4:/opt/local/bin] jdlh%

I read in a gnucash-users thread from January that a Fink user had 
similar symptoms, and the fix was to apply a Fink FAQ about telling 
X-windows of Fink's path. But I don't see how to use that in my 
situation; I've got MacPorts instead of Fink.

Any suggestions for how to resolve this?
-- 
     --Jim DeLaHunt, jdlh at jdlh.com     http://blog.jdlh.com/ (http://jdlh.com/)
       multilingual websites consultant

       157-2906 West Broadway, Vancouver BC V6K 2G8, Canada
          Canada mobile +1-604-376-8953


More information about the gnucash-user mailing list