In the first case, as normal user, you don't have write permission for the system perl lib directories. In the second, it sounds like root doesn't find make in $ENV{PATH}. That is common for gnu make's default installation in /usr/local/bin.
The usual solution is to do everything but 'make install' as normal user, then su and '/usr/local/bin/make install' 1. This is all very dependent on local installation and environment.
These considerations apply to any software build, not just CPAN modules
After Compline, Zaxo
1 or whatever your make path is.
Update: perleager has indicated that gcc is not found either, also being in /usr/local/bin . The remedy is to say on the command line, before building:
PATH=/usr/local/bin:$PATH
|