[GNC] Finance::Quote failed to initialize

Bruce Schuck bschuck at asgard-systems.com
Sun Oct 6 14:01:07 EDT 2024


On 10/5/24 20:07, John Ralls wrote:

> Interesting, I didn’t know that MyCpan.pm defaulted make install to
> run under sudo. FWIW I’ve been running sudo cpan on macOS for almost
> 20 years with no ill effects.

Frack, I am sorry, my mistake and I have to eat crow. Seems when cpan 
first sets up MyConfig.pm if there isn't any, the default is 
"local::lib" and not "sudo". When I set up a new environment I barely 
pay attention to the defaults since I typically set up two MyConfig.pm 
files. One with sudo and one with "local::lib". I will have sometimes 
have two or three different PERL5LIB settings and create short source 
scripts for each that set a bunch of CPAN related Perl environment 
variables and symlink MyConfig.pm from a MyConfig.pm.local.

Still, running "sudo cpan" from a user account is not the "Perl" way and 
even before I started contributing to F::Q, I used "cpan" to install 
F::Q (with MyConfig.pm set to use sudo for installs) and not the GnuCash 
supplied tool.

Bruce S


More information about the gnucash-user mailing list