Like many people whose sites are hosted on shared servers, I don’t have root access, and the hosting company will not install Perl modules at the request of users.
Unfortunately, I also do not have write privileges to the folder ~/, only for certain subfolders (for example, ~/cgi-bin/).
I tried to suggest the proposed solution here by changing ~/perl5to ~/cgi-bin/perl5(which I created), but I keep getting this error:
"Cannot write to cpanm home '~ / .cpanm': you must fix this with chown / chmod first."
The problem is that, as I said, I do not have write privileges for ~ / .
Is there any way to tell the installer to use ~/cgi-bin/.cpanminstead? I tried to figure this out by searching here and elsewhere on the Internet, but I start bash my head against the wall.
EDIT: So, I tried Stephen's suggestion below using the following command:
HOME = $ HOME / cgi-bin cpanm local :: lib
Now it cpanmsuccessfully starts and tries to install the module, but it has many warnings throughout the installation and ultimately fails (presumably something is still trying to write to the forbidden folder?).
Here are some examples of warnings:
Warning: Condition CPAN 1.82 not found. We have 1.7601.
Warning: ExtUtils :: Install 1.43 condition was not found. We have 1.32.
Warning: prerequisite ExtUtils :: MakeMaker 6.42 not found. We have 6.17.
: Module:: Build 0.36 .
: /usr/lib 64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl 5/5.8.5/ExtUtils/Install.pm, 114.
mkdir/usr/lib/perl5/5.8.5/App: /usr/lib/perl 5/5.8.5/ExtUtils/Install.pm 176
make: *** [pure_perl_install] 255