[BlueOnyx:24076] Re: Perl/CPAN install location

Richard Morgan richard at morgan-web.co.uk
Thu Jul 9 07:19:49 -05 2020


Please ignore. I've found the solution (writing the email to the group got
me questioning what I was doing, so many thanks!).

 

The .bashrc file to edit is for the admin user, not the root user. I just
had to comment out the five lines that CPAN had added when I mistakenly
tried installing modules as admin (well now I know).

 

Thanks.

 

From: Blueonyx [mailto:blueonyx-bounces at mail.blueonyx.it] On Behalf Of
Richard Morgan
Sent: 09 July 2020 12:23
To: blueonyx at blueonyx.it
Subject: [BlueOnyx:24075] Perl/CPAN install location

 

Hi, hope this is easy.

 

On my newly install 5210R server, I'm installing Perl modules - normally
it's fine and they are installed into /usr/share/perl5/vendor_perl, etc.

 

Using both cpan -i and perl -MCPAN -e shell (which I think is nearly the
same thing) they are both being installed to /home/.users/admin/perl5. I am
logged in as root.

 

I've read up on PERL5LIB and modifying .bashrc but these don't make a lot of
sense as they're talking about using locations other than the default
/usr/share/perl5.

 

Can anyone kindly shed some light on how I specify the install location?

 

Thanks, Richard

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20200709/912b544c/attachment.html>


More information about the Blueonyx mailing list