07, 2024 2:24 PM
To: 'Boniforti Flavio'
Cc: 'John Ralls' ; 'GnuCash users group'
Subject: Re: [GNC] Finance::Quote failed to initialize
That is correct for both types.
Just be careful with how many you download in one shot from sites where you are
not
defined this
way for as many sources you want to use and they all will happily live with
each other without complaining or stepping on each other.
-Original Message-
From: Boniforti Flavio
Sent: Monday, October 07, 2024 11:03 AM
To: John Ralls
Cc: GnuCash users group
Subject: Re: [G
Hi John.
Now I was able to install Finance::Quote -->
me@MacBook-Pro ~ % /Applications/Gnucash.app/Contents/MacOS/gnucash-cli -Q
info
Application Path /Applications/Gnucash.app/Contents/MacOS/gnucash-cli
* 16:58:23 WARN [GncFQQuoteSource::set_api_key()] No
Alpha Vantage API key set, currency q
Yay. Proceed to install Finance::Quote and JSON::Parse.You can use cpan
directly or gnc-fq-update, which is just a shell that runs cpan, as you prefer.
One more thing to check: Does /System/Library/Perl/5.34/Pod/Find.pm exist? I
expect it doesn’t, as it doesn’t on either of my Sequoia Macs. That
Hello John.
Yes, the file exists:
me@MacBook-Pro ~ % ls -la /Library/Perl/5.34/Test
total 336
drwxr-xr-x 10 root wheel320 Oct 6 20:43 .
drwxr-xr-x 8 root wheel256 Oct 6 20:44 ..
drwxr-xr-x 8 root wheel256 Oct 6 20:43 Builder
-r--r--r-- 1 root wheel 64973 Sep 14 19:
> On Oct 5, 2024, at 20:47, Bruce Schuck wrote:
>
> On 10/5/24 8:07 PM, 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.
>
> If it's the only wa
Bruce,
That’s OK, and I agree that it’s better to use sudo only for the installation.
I’ve adjusted the wiki page accordingly and I’ll fix the manual later.
Regards,
John Ralls
> On Oct 6, 2024, at 11:01, Bruce Schuck wrote:
>
> On 10/5/24 20:07, John Ralls wrote:
>
>> Interesting, I didn’t
Flavio,
OK, good. Does /Library/Perl/5.34/Test/Simple.pm exist?
Regards,
John Ralls
> On Oct 6, 2024, at 11:45, Boniforti Flavio wrote:
>
> Hi John.
>
> The output of "sudo cpan Test::Simple" is very long, the last part being:
>
> Appending installation info to
> /Library/Perl/Updates/5.34
Hi John.
The output of "sudo cpan Test::Simple" is very long, the last part being:
Appending installation info to
/Library/Perl/Updates/5.34.1/darwin-thread-multi-2level/perllocal.pod
EXODIST/Test-Simple-1.302204.tar.gz
/usr/bin/make install -- OK
Do you need more output?
F.
https://www.
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 MyConf
Flavio,
No, you don’t need to install perl from Homebrew. You’d also have to edit
GnuCash’s environment file to make it work and there’s no benefit. We were
chasing the Homebrew perl possibility trying to figure out if Finance::Quote’s
dependencies had gotten installed.
Your list shows that ev
Hi John.
Yes, indeed I used gnc-fq-update.
Do you suggest that I get Perl from Homebrew? If so, do I need to uninstall
the existing Perl installation (which apparently came with MacOS)?
Here's the output of the ls command:
bonny@Flavios-MacBook-Pro ~ % ls ~/.cpan/build
Archive-Any-Lite-0.11-0
On 10/5/24 8:07 PM, 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.
If it's the only way you use it, not a problem. But I'm often switching
between local:
Bruce,
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.
I just tested to make sure it worked without sudo (after chowning ~/.cpan),
and it didn’t; it wouldn’t have worked with
On 10/5/24 5:39 PM, John Ralls wrote:
As I explained in my previous, cpan needs to write to /Library/
Perl/3.40/, a system directory, so it need to be run with sudo. Of
course doing that causes the ownership of ~/.cpan to be root.
John,
I *know* how CPAN works. Typically the default MyConfig.
Bruce,
As I explained in my previous, cpan needs to write to /Library/Perl/3.40/, a
system directory, so it need to be run with sudo. Of course doing that causes
the ownership of ~/.cpan to be root.
Regards,
John Ralls
> On Oct 5, 2024, at 16:27, Bruce Schuck wrote:
>
> On 10/5/24 2:35 PM,
On 10/5/24 2:35 PM, Boniforti Flavio wrote:
Ah!
These lines are a clue.
Warning: You are not allowed to write into directory "/Users/me/.cpan/
sources/authors".
I'll continue, but if you encounter problems, they may be due
to insufficient permissions.
It appears that the directory perm
Flavio,
Ah, you followed the instructions on
https://www.gnucash.org/docs/v5/C/gnucash-manual/fq-install.html, so you used
gnc-fq-update.
Perl does come with macOS, but it’s not the latest release and some people use
Homebrew to get it.
The Quote.pms you’ve got aren’t Finance::Quote, so the a
Hi Bruce.
The output of the find command:
/usr/bin/perl
/usr/share/file/magic/perl
The command "brew list" doesn't show any Perl at all.
The cpan command output:
me@FMacBook-Pro ~ % cpan Finance::Quote
Loading internal logger. Log::Log4perl recommended for better logging
Reading '/Users/me/
Hi John.
In fact I followed the instructions on that page, but nothing tells me how
to install JSON::Parse.
I verified that I had Perl installed and then I proceeded to install
Finance::Quote as explained there in the Mac paragraph.
I ran the find command you suggested, except for the fact that I
Bruce,
Flavio has an Apple Silicon mac. On those machines Homebrew installs to
/opt/homebrew. See https://docs.brew.sh/Installation, second sentence in the
second paragraph.
Regards,
John Ralls
> On Oct 5, 2024, at 12:54 PM, Bruce Schuck wrote:
>
> On 10/5/24 01:29, Boniforti Flavio wrote:
On 10/5/24 01:29, Boniforti Flavio wrote:
The output of the short script you've pointed at:
Searching: /Library/Perl/5.34
Searching: /Network/Library/Perl/5.34
Searching: /System/Library/Perl/5.34
Searching: /System/Library/Perl/Extras/5.34
BTW: I don't remember installing Perl vi
Flavio,
That page says the you need perl, JSON::Parse, and Finance::Quote, but it
doesn’t say anything about how to get them. What did you do?
At this point I think it’s worthwhile to see if you installed Finance::Quote at
all. Run
find / -x -name Quote.pm
It will take a while, it’s going to
The output of the short script you've pointed at:
Searching: /Library/Perl/5.34
Searching: /Network/Library/Perl/5.34
Searching: /System/Library/Perl/5.34
Searching: /System/Library/Perl/Extras/5.34
BTW: I don't remember installing Perl via Homebrew, how would I verify that?
Thanks,
F.
htt
Hi John.
I followed the instructions at:
https://www.gnucash.org/docs/v5/C/gnucash-manual/finance-quote.html
I also found this:
me@FMacBook-Pro ~ % ls -la /Library/Perl
total 0
drwxr-xr-x 4 root wheel 128 Aug 4 12:31 .
drwxr-xr-x 69 root wheel 2208 Aug 18 16:38 ..
drwxr-xr-x 3 root
On 10/4/24 7:32 PM, John Ralls wrote:
There’s no Homebrew formula for GnuCash, it’s just a cask around the
dmg I build and notarize for distribution. Once the dmg is mounted
the user can drag GnuCash.app anywhere they like, though I provide a
link to /Applications and a suggestive arrow pointing
Bruce,
There’s no Homebrew formula for GnuCash, it’s just a cask around the dmg I
build and notarize for distribution. Once the dmg is mounted the user can drag
GnuCash.app anywhere they like, though I provide a link to /Applications and a
suggestive arrow pointing between the two in the dmg Fi
John and Flavio,
If Flavio installed GnuCash via HomeBrew as he indicated in one of the
previous messages
(https://lists.gnucash.org/pipermail/gnucash-user/2024-October/113530.html)
there should *not* be the directory tree /Applications/Gnucash.app/...
Homebrew installs applications under /u
Flavio,
The almost empty /Library/Perl/5.34/ means that you didn't install
Finance::Quote there. Please link the instructions that you used.
Regards,
John Ralls
> On Oct 4, 2024, at 11:18 AM, Boniforti Flavio wrote:
>
> Hi John.
> This is the output of the "file" command:
> /Applications/Gnu
Hi John.
This is the output of the "file" command:
/Applications/Gnucash.app/Contents/MacOS/Gnucash: Mach-O 64-bit executable
arm64
And these the contents of the Perl library path - I think there's something
missing:
me@MacBook-Pro ~ % ls -la /Library/Perl/5.34
total 0
drwxr-xr-x 3 root whee
Flavio,
I bet HomeBrew didn’t pick up the Apple Silicon build, but to make sure you can
run
file /Applications/Gnucash.app/Contents/MacOS/Gnucash
Which will return something like
/Applications/Gnucash.app/Contents/MacOS/Gnucash: Mach-O 64-bit executable
x86_64
For an Intel build; the end wi
Hi John.
I installed GnuCash with HomeBrew. I did not manually install Perl - it was
already there:
me@MacBook-Pro ~ % perl -v
This is perl 5, version 34, subversion 1 (v5.34.1) built for
darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)
Copyright 1987-2022,
Flavio,
What did you actually do? Do you by any chance have a perl installed that isn’t
from Apple, perhaps HomeBrew or MacPorts? Is your MBP an Intel or Apple Silicon
one and did you install the GnuCash that matches the architecture?
Regards,
John Ralls
> On Oct 2, 2024, at 12:03, Boniforti
Hi all.
On MacOS Sonoma 14.6.1 I've just followed the instructions from the GnuCash
documentation to install the Finance::Quote module.
After finishing without errors, I tried to use it but it won't initialize -
see here:
me@MacBook-Pro ~ %
/System/Volumes/Data/Applications/Gnucash.app/Contents/M
34 matches
Mail list logo