Error when trying to install DBI module
- My web hosting service can't seem to get DBI.pm installed
so I offered to install it myself in my own directory. When I
try to generate the make file:
perl Makefile.PL PREFIX=<my directory>
I get this error message:
Checking if your kit is complete...
Can't exec "pwd": Permission denied at /usr/lib/perl5/5.6.0/Cwd.pm
Does anyone have an idea what might cause this? What do I need to do
to get around this? Thanks in advance for any help.
- IMHO DBI is about as fundamental as CGI.pm in a hosting environment.
If they can't install it with CPAN or the source, it may come down to
perl being recompiled, unless they can find the proper rpm(s) for the
job ( it looks like your perl was prebuilt because of the perl lib
prefix?, if the build was done with a different compiler than whatever
is on the machine, it's likely to be more than a headache). I would
just give them a couple more days and start looking elsewhere if they
can't get it installed.
But as to the specific problem you are having now: Did you try running
'pwd' from the command line ( from your install_to dir, the perl libs
dir , and mysql libs dir)? If you can't can't cd and pwd to/from all
of these dirs, then you just don't have the permissions to install
DBI. If you can cd and pwd to the above dirs, I'd run 'strace' eg:
strace -o strace.txt perl Makefile.pl
Then open 'strace.txt' and look towards the
bottom of the probably large file and see if any thing looks funny
Hope that helps,