[GNC] Finance::Quote on a Mac with a foreign perl
john
jralls at ceridwen.us
Fri Apr 26 12:07:04 EDT 2024
Vincent,
Here's an example of a failed session with Homebrew interference: https://paste.jvnv.net/view/CcsOd This comes from an IRC discussion at https://code.gnucash.org/logs/2024/04/16.html#T06:46:33. There was an earlier exchange with another longer dump that implicated Homebrew in which I told the user to clean it out but gncbot was apparently offline when that occurred and I don't have a link to it. In the dump you can see that the user is invoking gnc-fq-update and that it's running /usr/bin/perl. Later at line 97 you can see that /System/Library/Perl/Extras/5.34 is missing from @INC. That's where the pre-built networking modules are.
Another user supplied this ill-considered and reverted edit on the wiki pointing at the same problem: https://wiki.gnucash.org/wiki/index.php?title=Online_Quotes&diff=22109&oldid=21974.
That's pretty much all I've got.
Regards,
John Ralls
> On Apr 25, 2024, at 20:11, Vincent Lucarelli <vincent.lucarelli at gmail.com> wrote:
>
> 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