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

James Edmunds Jimmy142 at hotmail.co.uk
Mon Feb 28 10:48:08 EST 2022


Dear Bruce


Thank you for your prompt and helpful reply.


To answer your question an extract from perl -V shows :


@INC:

/etc/perl

/usr/local/lib/x86_64-linux-gnu/perl/5.26.1

/usr/local/share/perl/5.26.1

/usr/lib/x86_64-linux-gnu/perl5/5.26

/usr/share/perl5

/usr/lib/x86_64-linux-gnu/perl/5.26

/usr/share/perl/5.26

/usr/local/lib/site_perl

/usr/lib/x86_64-linux-gnu/perl-base


So ‘home/perl5/lib/perl5/ ‘ is not part of my INC path .


I decided to correct by running ‘ sudo cpanm Finance::Quote ‘ as this was simpler for a perl noob.


I now have a working FQ 1.51 .

Thank you once again.


________________________________
From: Bruce Schuck <bschuck at asgard-systems.com>
Sent: 27 February 2022 22:54
To: gnucash-user at gnucash.org <gnucash-user at gnucash.org>
Cc: James Edmunds <jimmy142 at hotmail.co.uk>
Subject: Re: [GNC] Upgrade to GC 2.6.19 and Finance:Quote 1.51

> 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