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:

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?

Have you tried downloading the tar file and building without using CPAN.pm?

I actually tried to install them manually first by downloading the src for each individual module. There are too many dependency issue. It asked me to install a lot of modules required for DBI. Besides, some of the modules already installed have very old version while the module to be installed need newer version of these. Since the old modules were installed by the admin, there is no way I could update them. My question is if I install the modules by cpan, would I come across with the same problems (module dependencies, version too old, etc.)?

I did specify Prefix when I was installing CPAN modules manually. As a matter of fact, I did get DBI installed that way under my dir. Well, "make test" gave me some errors , but "make install" works fine and I see some dbi directories generated under my dir including bin, lib, etc.

If like you said, installing modules within Cpan shell is essentially the same as manual install and I will still be facing the dependencies, I might as well install the whole perl package under my directory. However, it fell into a dead loop while running make for module 'DBI'. Complaining that "Running make for A/AD/ADAMK/DBD-SQLite-1.37.tar.gz ---- Unsatisfied dependencies detected during ---- ---- ADAMK/DBD-SQLite-1.37.tar.gz ---- DBI [build_requires]