I try to ensure that my Finder-initiated processes share the same environment 
as my shell processes by loading envvars with launchctl setenv with every 
invocation of my .profile. In order to fully test that, I need to create an app 
that just reports its environment. I haven’t done that.

Incidentally, it would be useful if there were an option in GnuCash to report 
the environment.

Peter
—
Peter West
p...@ehealth.id.au
“On these two commandments depend all the Law and the Prophets.”

> On 22 Aug 2021, at 10:40 am, Peter West <p...@pbw.id.au> wrote:
> 
> 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
> p...@ehealth.id.au
> “On these two commandments depend all the Law and the Prophets.”
> 
>> On 21 Aug 2021, at 2:30 am, Peter West <p...@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
>> p...@ehealth.id.au <mailto:p...@ehealth.id.au>
>> “On these two commandments depend all the Law and the Prophets.”
>> 
>>> On 21 Aug 2021, at 1:54 am, John Ralls <jra...@ceridwen.us 
>>> <mailto:jra...@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 <p...@pbw.id.au 
>>>> <mailto:p...@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
>>>> p...@ehealth.id.au <mailto:p...@ehealth.id.au>
>>>> “On these two commandments depend all the Law and the Prophets.”
>>>> 
>>>>> On 20 Aug 2021, at 2:21 pm, Colin <colinfar...@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-requ...@gnucash.org wrote:
>>>>>> 
>>>>>> Message: 5
>>>>>> Date: Thu, 19 Aug 2021 20:36:28 -0700
>>>>>> From: John Ralls <jra...@ceridwen.us <mailto:jra...@ceridwen.us>>
>>>>>> To: davel...@mac.com <mailto:davel...@mac.com>
>>>>>> Cc: Mailing List Gnucash <gnucash-user@gnucash.org 
>>>>>> <mailto:gnucash-user@gnucash.org>>
>>>>>> Subject: Re: [GNC] Finance::Quote on Mac M1
>>>>>> Message-ID: <4e108262-4136-47b2-ac7e-5ed553442...@ceridwen.us 
>>>>>> <mailto:4e108262-4136-47b2-ac7e-5ed553442...@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@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@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@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@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.

Reply via email to