perl -MCPAN -e shell gets Can't locate CPAN.pm This is Fedora Linux 40 (the most recent)
perl -v gets 5.38.2 dnf list perl*CPAN* gets lots of hits (so it is available). On Thu, May 2, 2024 at 6:04 AM Kalpesh Patel <kalpesh.pa...@usa.net> wrote: > "Gets nothing on my linux." sounds like those modules have not been > initialized as your system is NOT running in an "island" configuration > since sudo make install works. This might possibly be an outbound firewall > issue although if wget and/or curl works then not. > > Run following: > perl -MCPAN -e shell > > to see if you get 'cpan>' prompt. If not then most likely CPAN module is > not installed on your system which would be unusual as it comes with modern > perl. Not sure which type of Linux you are running but generally if a Perl > library is named Foo::Bar on CPAN (CPAN is named CPAN), the Debian/Ubuntu > package will be named libfoo-bar-perl and for Fedora/Redhat it will be > named perl-Foo-Bar. > > If you have cpan modules installed then it is a good idea to initialize it > by executing 'o conf commit' at CPAN shell prompt of 'cpan>'. > > -----Original Message----- > From: Fred Tydeman <tydeman.f...@gmail.com> > Sent: Wednesday, May 01, 2024 11:50 PM > To: Bruce Schuck <bsch...@asgard-systems.com> > Cc: GnuCash User <gnucash-user@gnucash.org> > Subject: Re: [GNC] Finance::Quote PreRelease 1.61_03 > > Running: sudo make install > worked. I was able to get stock quotes again. So thank you. > > Trying: > cpan > cpanm > locate cpan > Gets nothing on my linux. > > dnf list cpan* > gets: cpanspec.noarch > > > On Wed, May 1, 2024 at 8:07 PM Bruce Schuck <bsch...@asgard-systems.com> > wrote: > > > On 5/1/24 7:39 PM, Fred Tydeman wrote: > > > > > On my Linux systems, after some searching, I found that I needed: > > > dnf install perl-ExtUtils-MakeMake* to get me started. Running perl > > > Makefile.PL got me several warnings of other missing perl files. > > > After doing a bunch of dnf install perl-... for them, 'make' and > > > 'make test' ran But, 'make install' failed due to permission issues. > > > Does it need 'su' to do the install? > > > > People not familiar with the "manual" method of installing should use > > cpan or cpanm. To install an interim release > > > > "cpanm BPSCHUCK/Finance-Quote-1.61_03.tar.gz" or "cpan > > BPSCHUCK/Finance-Quote-1.61_03.tar.gz". > > > > Depending how cpan(m) is configured, super user permissions may or may > > not be required. Typically when running cpan or cpanm, the install > > process will ask for the user's sudo password to install modules. > > > > When I would install using the "perl Makefile.PL; make; make test; > > make install" steps, I would become root or use sudo to execute "make > > install". But again, most people should utilize cpan or cpanm. The > > install tool provided by GnuCash utilizes CPAN. > > > > There is a brief overview of installing modules at > > https://www.cpan.org/modules/INSTALL.html which doesn't mention the > > legacy "perl Makefile.PL" method. As I mentioned in my post though, > > "For those who are comfortable with the interim releases". Comfortable > > being the operative word. > > > > Bruce S > > > > _______________________________________________ gnucash-user mailing list gnucash-user@gnucash.org To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.