[GNC] Finance::Quote on a Mac with a foreign perl
Vincent Lucarelli
vincent.lucarelli at gmail.com
Thu Apr 25 23:11:36 EDT 2024
John,
I run macOS and use Homebrew. How are the user’s running gnc-fq-update? From a terminal, if you
> cd /Applications/Gnucash.app/Contents/Resources/bin
> sudo ./gnc-fq-update
it is going to use /usr/bin/perl from the #! line at the top of the script.
But the script uses the perl CPAN module, so maybe there is something in $HOME/.cpan that is causing trouble?
To answer your actual question, I have
> /usr/bin/perl -e 'print(join("\n", @INC));'
/Library/Perl/5.34/darwin-thread-multi-2level
/Library/Perl/5.34
/Network/Library/Perl/5.34/darwin-thread-multi-2level
/Network/Library/Perl/5.34
/Library/Perl/Updates/5.34.1
/System/Library/Perl/5.34/darwin-thread-multi-2level
/System/Library/Perl/5.34
/System/Library/Perl/Extras/5.34/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.34
vs
> which perl
/Users/acount/perl5/perlbrew/perls/perl-5.32.0/bin/perl
> perl -e 'print(join("\n", @INC));'
/Users/acount/perl5/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/darwin-2level
/Users/acount/perl5/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0
/Users/acount/perl5/perlbrew/perls/perl-5.32.0/lib/5.32.0/darwin-2level
/Users/acount/perl5/perlbrew/perls/perl-5.32.0/lib/5.32.0
but - I’m not sure if there are other shell rc file changes that these users might have that could alter this, or if there are brew installs that could alter this as well.
I’m happy to help sort this out, but need some more information about the users’ issues.
Best,
Vince
> On Apr 25, 2024, at 7:15 PM, john <jralls at ceridwen.us> wrote:
>
> Are there any Mac users who have Homebrew installed and know what @INC is?
>
> At least two users with the first problem but without knowing the second have gotten themselves cross-threaded trying to install Finance::Quote because Homebrew' screws up their perl installation so that cpan ignores the installed modules and since Homebrew doesn't (at least without help) provide SSLeay, Net::HTTPS, and IO::Sockets::SSL and macOS doesn't put OpenSSL's headers in /usr/include they have to perform all sorts of unnatural acts to get gnc-fq-update to work.
>
> We need some simple instructions for the wiki for how to work around the problem so that gnc-fq-update uses the system perl (that's after all the only one the app bundle can see, it doesn't read the user's shell environment) and gets the dependencies from /System/Library/Perl instead of trying to build them.
>
> Regards,
> John Ralls
>
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
More information about the gnucash-user
mailing list