
oscarjiao
Novice
Sep 27, 2012, 8:45 AM
Post #1 of 7
(21462 views)
|
Problems with installing CPAN modules without root
|
Can't Post
|
|
Hi, I am trying to install some CPAN modules on this cluster remotely. Perl is already installed on the cluster, there are a few modules missing, including DBI, DBD:SQLite, threads, etc, which are required by this package I will install eventually. Since I do not have root, I have to configure CPAN and point it to my directory. So I followed some instructions online and did the following: Adding this to my bashrc:
if [ -z "$PERL5LIB" ] then # If PERL5LIB wasn't previously defined, set it... PERL5LIB=~/myperl/lib else # ...otherwise, extend it. PERL5LIB=$PERL5LIB:~/myperl/lib fi MANPATH=$MANPATH:~/myperl/man export PERL5LIB MANPATH @INC has been successfully updated after this. Now
o conf makepl_arg "LIB=~/myperl/lib INSTALLSITEMAN1DIR=~/myperl/man/man1 INSTALLSITEMAN3DIR=~/myperl/man/man3" o conf make_install_arg UNINST=0 o conf commit Then I started to install module with CPAN (DBI in this case)
perl -MCPAN -we 'install "DBI"' It failed when running "make install", giving me the following error: Warning: You do not have permissions to install into /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi at /usr/lib/perl5/5.8.8/ExtUtils/Install.pm line 114. mkdir /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBI: Permission denied at /usr/lib/perl5/5.8.8/ExtUtils/Install.pm line 176 make: *** [pure_site_install] Error 13 /usr/bin/make install -- NOT OK You may have to su to root to install the package What does it still want to install in under /usr/... while I already changed the path? Is there a way to force it?
|