Sorry for the late reply, and thank you so much
for this great answer.
It looks like '/home/mike/perl5' is correct:
$ perl -V
Summary of my perl5 (revision 5 version 30 subversion 0) configuration:
Platform:
osname=linux
osvers=4.15.0-65-generic
archname=x86_64-linux
uname='linux mike-linuxmint 4.15.0-65-generic #74-ubuntu smp tue
sep 17 17:06:04 utc 2019 x86_64 x86_64 x86_64 gnulinux '
config_args='-de
-Dprefix=/home/mike/perl5/perlbrew/perls/perl-5.30.0
-Aeval:scriptdir=/home/mike/perl5/perlbrew/perls/perl-5.30.0/bin'
hint=recommended
useposix=true
d_sigaction=define
useithreads=undef
usemultiplicity=undef
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
bincompat5005=undef
Compiler:
cc='cc'
ccflags ='-fwrapv -fno-strict-aliasing -pipe
-fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64'
optimize='-O2'
cppflags='-fwrapv -fno-strict-aliasing -pipe
-fstack-protector-strong -I/usr/local/include'
ccversion=''
gccversion='7.4.0'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=16
longdblkind=3
ivtype='long'
ivsize=8
nvtype='double'
nvsize=8
Off_t='off_t'
lseeksize=8
alignbytes=8
prototype=define
Linker and Libraries:
ld='cc'
ldflags =' -fstack-protector-strong -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed
/usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib
/usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib
libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
libc=libc-2.27.so
so=so
useshrplib=false
libperl=libperl.a
gnulibc_version='2.27'
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=so
d_dlsymun=undef
ccdlflags='-Wl,-E'
cccdlflags='-fPIC'
lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'
Characteristics of this binary (from libperl):
Compile-time options:
HAS_TIMES
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_MALLOC_WRAP
PERL_OP_PARENT
PERL_PRESERVE_IVUV
USE_64_BIT_ALL
USE_64_BIT_INT
USE_LARGE_FILES
USE_LOCALE
USE_LOCALE_COLLATE
USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_PERLIO
USE_PERL_ATOF
Locally applied patches:
Devel::PatchPerl 1.48
Built under linux
Compiled at Oct 20 2019 17:45:46
%ENV:
PERL5LIB="/home/mike/perl5/lib/perl5"
PERL_LOCAL_LIB_ROOT="/home/mike/perl5"
PERL_MB_OPT="--install_base "/home/mike/perl5""
PERL_MM_OPT="INSTALL_BASE=/home/mike/perl5"
@INC:
/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-linux
/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
$
Mike
On 7/3/26 09:17, Jim Gibson wrote:
Use the command ‘perl -V’ (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 ’sudo’)
On Jul 3, 2026, at 6:04 AM, Mike <[email protected]> wrote:
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/
Instead it installs here:
/home/mike/.cpan/build/Finance-Quote-1.70-0/lib/Finance/
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:
$ perl quote_example.pl
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-linux
/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.
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
$
quote_example.pl is located here:
https://www.mflan.com/temp/quote_example.pl
I would like to be able to install Finance::Quote and use it.
Can anyone here help?
Mike