Re: Finance::Quote

Jim Gibson via beginners <[email protected]> Fri, 3 Jul 2026 07:17:58 -0700
Newsgroups gmane.comp.lang.perl.beginners
Message-ID <[email protected]>
Use the command =E2=80=98perl -V=E2=80=99 (that is a capital V) to see =
where your perl installation looks for modules to load. The source file =
for Finance::Quote (Quote.pm) needs to be in a directory Finance =
somewhere in that path.

You can install modules without using the cpan utility program.

First, download the module distribution from www.cpan.org. Then use =
these commands:

perl Makefile.PL
make
make test
make install

(You may need to preface the last command with =E2=80=99sudo=E2=80=99)



> On Jul 3, 2026, at 6:04=E2=80=AFAM, Mike <[email protected]> wrote:
>=20
>=20
> If I do:
> cpan install Finance::Quote
> in a terminal on my Linux Mint I expect the Quote.pm
> file to be installed here:
> /home/mike/perl5/lib/perl5/Finance/
>=20
> Instead it installs here:
> /home/mike/.cpan/build/Finance-Quote-1.70-0/lib/Finance/
>=20
> Well, OK.  So I copy the =
/home/mike/.cpan/build/Finance-Quote-1.70-0/lib/Finance/
> directory to /home/mike/perl5/lib/perl5/, but when I run
> the supplied quote_example.pl file it gives a long, failed
> output that begins with:
>=20
> $ perl quote_example.pl
>=20
> Can't locate XML/LibXML.pm in @INC (you may need to install the =
XML::LibXML module) (@INC contains: ../lib =
/home/mike/perl5/lib/perl5/5.30.0/x86_64-linux =
/home/mike/perl5/lib/perl5/5.30.0 =
/home/mike/perl5/lib/perl5/x86_64-linux /home/mike/perl5/lib/perl5 =
/home/mike/perl5/perlbrew/perls/perl-5.30.0/lib/site_perl/5.30.0/x86_64-li=
nux /home/mike/perl5/perlbrew/perls/perl-5.30.0/lib/site_perl/5.30.0 =
/home/mike/perl5/perlbrew/perls/perl-5.30.0/lib/5.30.0/x86_64-linux =
/home/mike/perl5/perlbrew/perls/perl-5.30.0/lib/5.30.0) at =
/home/mike/perl5/lib/perl5/Finance/Quote/MorningstarJP.pm line 27.
> BEGIN failed--compilation aborted at =
/home/mike/perl5/lib/perl5/Finance/Quote/MorningstarJP.pm line 27.
> Compilation failed in require at =
/home/mike/perl5/lib/perl5/Module/Load.pm line 78.
>=20
> Here is my path:
> $ echo $PATH | tr : \\n | sort
> /bin
> /home/mike/.cargo/bin
> /home/mike/.local/bin
> /home/mike/perl5
> /home/mike/perl5/bin
> /home/mike/perl5/perlbrew/bin
> /home/mike/perl5/perlbrew/perls/perl-5.30.0/bin
> /sbin
> /snap/bin
> /usr/bin
> /usr/games
> /usr/local/bin
> /usr/local/games
> /usr/local/sbin
> /usr/sbin
> $
>=20
> quote_example.pl is located here:
> https://www.mflan.com/temp/quote_example.pl
>=20
> I would like to be able to install Finance::Quote and use it.
> Can anyone here help?
>=20
>=20
> Mike
>=20


-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/