Click here to get back home

Local installation of perl module

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Local installation of perl module burkina 09-05-2005
Posted by burkina on September 5, 2005, 9:07 am
Please log in for more thread options


Hi,

I need to install a perl module without root privileges.
I've followed some advices found on the web: created a .cpan directory,
copied Config.pm, renamed it in MyConfig.pm and changed all the
'/root/.cpan' instances with my local .cpan dir, created a local perl
dir and changed PERL5LIB and MANPATH variables.
Then, I launched

perl -MCPAN -e 'shell'

changed the settings with 'o conf' and then:

install XML::Parser

Everything goes well up to when it has to actually install the module,
becuase it still tries to do it in the root installation:

Warning: You do not have permissions to install into
/usr/local/perl-5.8.3/lib/site_perl/5.8.3/i686-linux at
/usr/local/perl-5.8.3/lib/5.8.3/ExtUtils/Install.pm line 114.
mkdir
/usr/local/perl-5.8.3/lib/site_perl/5.8.3/i686-linux/auto/XML/Parser:
Permission denied at
/usr/local/perl-5.8.3/lib/5.8.3/ExtUtils/Install.pm line 176
make: *** [pure_site_install] Error 255
/usr/bin/make install -- NOT OK
You may have to su to root to install the package

What am I missing?

Thanks,

Stefano



Posted by Gunnar Hjalmarsson on September 5, 2005, 7:24 pm
Please log in for more thread options


burkina wrote:
> I need to install a perl module without root privileges.
> I've followed some advices found on the web:

<snip>

> What am I missing?

The Perl FAQ?

perldoc -q "install a module"

perldoc -q "my own"

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl


Posted by burkina on September 6, 2005, 1:14 am
Please log in for more thread options


I was trying to do it automatically with CPAN, there were instructions
on the web to do that.
In any case, the manual installation worked!

Thank you Gunnar,

Stefano



Similar ThreadsPosted
CPAN module local installation question July 12, 2006, 4:49 am
Perl module installation April 11, 2005, 9:55 am
perl cgi session module installation problem June 5, 2006, 11:11 am
Mysql-DBD Perl module Installation Problem in HPUX June 30, 2005, 9:05 am
perl DBI installation help March 1, 2006, 10:29 am
perl DBI,DBD::ODBC installation help March 7, 2006, 12:42 am
perl modules installation July 13, 2007, 11:29 am
perl-gtk installation failing on Solaris March 20, 2007, 7:28 am
Module to return Local Policy Info July 13, 2008, 1:50 pm
Perl Win32::Setupsup installation issue April 2, 2007, 5:01 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap