gnc-fq-dump isn't happy with Finance::Quote (Mac OS X, MacPorts)
Jim DeLaHunt
from.gnucash at jdlh.com
Thu May 21 03:36:37 EDT 2009
At 12:10 AM -0700 5/20/09, Jim DeLaHunt wrote:
>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>
....
>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.
And the answer appears to be: a bug in gnc-fq-update as supplied in
the MacPorts version of gnucash. It invokes Apple's copy of perl,
with Apple's libraries. The other gnc-fq-* tools invoke the Perl and
libraries installed by MacPorts.
% head -1 gnc-fq-*
==> gnc-fq-check <==
#!/opt/local/bin/perl -w
==> gnc-fq-dump <==
#!/usr/bin/perl
==> gnc-fq-helper <==
#!/opt/local/bin/perl -w
==> gnc-fq-update <==
#!/opt/local/bin/perl -w
So, I patched gnc-fq-dump to make its first line
#!/opt/local/bin/perl -w
instead of
#!/usr/bin/perl
Now gnc-fq-dump is happy.
I'll file a MacPorts bug report against gnucash about this.
--Jim
At 12:10 AM -0700 5/20/09, Jim DeLaHunt wrote:
>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
--
--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