[GNC] Finance::Quote on Mac M1
Peter West
pbw at pbw.id.au
Sat Aug 21 20:40:26 EDT 2021
It also works with my MacPorts perl promoted above the system perl.
Maybe just not finding gnc-fq-check, if that was the case, was enough to generate that message.
Peter
—
Peter West
pbw at ehealth.id.au
“On these two commandments depend all the Law and the Prophets.”
> On 21 Aug 2021, at 2:30 am, Peter West <pbw at pbw.id.au> wrote:
>
> It’s working, using the system perl.
>
> When I started to tinker, I copies the gnc-* binaries from Contents/Resources/bin to my local directory, so that I could run them without having to delve into GnuCash.app. I renamed that bin to bin~, and forgot about it. Your mention of /Applications/Gnucash.app/Contents/Resources/bin sent me to have a look in there.
>
> I’ll experiment with the MacPorts perl (currently 5.34, whereas system perl is 5.30) and let you know. Thanks for your patience, which I hope you still have.
>
> Peter
>
> —
> Peter West
> pbw at ehealth.id.au <mailto:pbw at ehealth.id.au>
> “On these two commandments depend all the Law and the Prophets.”
>
>> On 21 Aug 2021, at 1:54 am, John Ralls <jralls at ceridwen.us <mailto:jralls at ceridwen.us>> wrote:
>>
>> That's what "Perl from other sources may or may not work and will regardless require modifying Gnucash.app/Contents/Resources/etc/gnucash/environment to set the perl path and @INC so that GnuCash can find the right F::Q. If you insist on that you're on your own." is about.
>>
>> The issue is that when you launch from Finder there's no shell so GnuCash can't see your MacPorts environment changes. Try launching GnuCash from a shell window that does have the MacPorts environment.
>>
>> Regards,
>> John Ralls
>>
>>> On Aug 20, 2021, at 3:55 AM, Peter West <pbw at pbw.id.au <mailto:pbw at pbw.id.au>> wrote:
>>>
>>> Doesn’t work for me.
>>>
>>> Note: I’m assuming that the message Finance::Quote not installed properly, when Add is invoked in the security editor, means that it’s not installed properly.
>>>
>>> I depend a lot on MacPorts. I’ve tried forcing the installation with MacPorts perl 5.34 foremost in my path, and with it (and all other perl binaries) relegated in my path. It makes no difference to the appearance of that message.
>>>
>>> In each case I have checked the installation paths of perl. In the first the installation paths are in /opt/local, in the latter they are in /usr, /Library, /System, /Network and /usr/local.
>>>
>>> Peter
>>> —
>>> Peter West
>>> pbw at ehealth.id.au <mailto:pbw at ehealth.id.au>
>>> “On these two commandments depend all the Law and the Prophets.”
>>>
>>>> On 20 Aug 2021, at 2:21 pm, Colin <colinfarndt at gmail.com> wrote:
>>>>
>>>> Thank you John! I ran the commands you provided and Finance::Quote works for the first time since I got my M1 MacBook Air! I’ve been watching the Finance::Quote threads on the list the last few months, always hoping for a solution I could manage to I implement to fix the issue. No doubt I could have missed this if it was posted before, regardless you just made my day.
>>>>
>>>> For what it’s worth, my install of GnuCash was done the standard way - downloading the DMG from the website.
>>>>
>>>> Also, to make the solution crystal clear to those who are not as good on the command line, there was a typo in John’s most recent advice of the commands to run. It is B::Keywords (capital K):
>>>>
>>>> sudo cpan -i Test2; sudo cpan -f -i B::Keywords; sudo cpan -i Finance::Quote
>>>>
>>>> Very gratefully,
>>>> Colin
>>>>
>>>>> On Aug 19, 2021, at 8:36 PM, gnucash-user-request at gnucash.org wrote:
>>>>>
>>>>> Message: 5
>>>>> Date: Thu, 19 Aug 2021 20:36:28 -0700
>>>>> From: John Ralls <jralls at ceridwen.us <mailto:jralls at ceridwen.us>>
>>>>> To: davelist at mac.com <mailto:davelist at mac.com>
>>>>> Cc: Mailing List Gnucash <gnucash-user at gnucash.org <mailto:gnucash-user at gnucash.org>>
>>>>> Subject: Re: [GNC] Finance::Quote on Mac M1
>>>>> Message-ID: <4E108262-4136-47B2-AC7E-5ED5534420A2 at ceridwen.us <mailto:4E108262-4136-47B2-AC7E-5ED5534420A2 at ceridwen.us>>
>>>>> Content-Type: text/plain; charset=utf-8
>>>>>
>>>>> You didn't read my letter very carefully: You should be able to get quotes now if you do `sudo cpan -i Test2; sudo cpan -f -i B::keywords; sudo cpan -i Finance::Quote`. The system perl is a universal binary and works in both native and Rosetta2 environments. Perl from other sources may or may not work and will regardless require modifying Gnucash.app/Contents/Resources/etc/gnucash/environment to set the perl path and @INC so that GnuCash can find the right F::Q. If you insist on that you're on your own.
>>>>>
>>>>> As for a native M1 build, I haven't decided yet whether to do that before the next major nettle release. I really don't like pushing development software at ordinary users, it tends to make for unpleasant surprises. Meanwhile GnuCash seems to work well under Rosetta2 so there's not a strong argument for doing a native build until nettle's ARM64 implementation is in a stable release.
>>>>>
>>>>> 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
>>>> If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
>>>> -----
>>>> Please remember to CC this list on all your replies.
>>>> You can do this by using Reply-To-List or Reply-All.
>>>
>>> _______________________________________________
>>> 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
>>> If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
>>> -----
>>> 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