[GNC] Upgrade to GC 2.6.19 and Finance:Quote 1.51

Bruce Schuck bschuck at asgard-systems.com
Sun Feb 27 17:54:36 EST 2022


> From: James Edmunds <jimmy142 at hotmail.co.uk>

> I have just upgraded from Ubuntu 16.04 to 18.04.

FYI - Ubuntu 22.04LTS will be released in April.

> I then wished to install the latest version of FQ. The command 
> ?gnc-fq-update ? is not included in Ubuntu 16.04 or 18.04. So I 
> searched the internet for an alternative command. I found ?cpanm 
> Finance::Quote ? and ran it . Note by mistake I did not run as sudo ,
> I don?t know whether that matters .

> FQ 1.49 files appear to be in 
> /usr/local/share/perl/5.22.1/Finance/Quote

> FQ 1.47 files appear to be in /usr/share/perl5/Finance/Quote

> FQ 1.51 files appear to be in /home/perl5/lib/perl5/Finance/Quote

> Have I installed 1.51 correctly, if not how do I install it and get>
> it working ?

With Perl, "correctly" can be a subjective term. Both cpan and cpanm can 
be configured to install Perl Modules in different locations including 
the default Perl include path (@INC). My guess is that although cpanm 
installed FQ in /home/perl5/lib/perl5/Finance/Quote (is that 
/home/perl5/... or /home/<yourlogin>/...), that directory is not part of 
your INC path (what is the output of "perl -V"?). I also would not be 
surprised if cpanm did not install some other modules underneath 
/home/perl5/lib/perl5.

I would try the following.

Add "export PERL5LIB=/home/perl5/lib/perl5" to your "~/.bashrc" file and 
"PERL5LIB=/home/perl5/lib/perl5" /etc/gnucash/environment. Log out and 
back in that try gnc-fq-check.

Or run cpanm as root or with the "--sudo" option.

Hope this helps.

- Bruce S.


More information about the gnucash-user mailing list