Sep 27, 2012, 8:45 AM
Post #1 of 7
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:
Problems with installing CPAN modules without root
Adding this to my bashrc:
if [ -z "$PERL5LIB" ]
# If PERL5LIB wasn't previously defined, set it...
# ...otherwise, extend it.
export PERL5LIB MANPATH
@INC has been successfully updated after this.
Then I started to install module with CPAN (DBI in this case)
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
It failed when running "make install", giving me the following error:
perl -MCPAN -we 'install "DBI"'
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?