Reputation: 1077
When I am trying to install any module on a RedHat 7.3 using cpan
, I am getting this weird message - "make: execvp: true: Permission denied
":
sudo cpan
cpan[1]> install Log::Log4perl
...
(tests run ok)
...
Running make install
make: execvp: true: Permission denied
make: *** [blibdirs] Error 127
MSCHILLI/Log-Log4perl-1.49.tar.gz
sudo /bin/make install -- NOT OK
Failed during this command:
MSCHILLI/Log-Log4perl-1.49.tar.gz : install NO
Then, if I navigate to the cpans build_dir
(from MyConfig.pm
), find the folder with this module, and run make test; sudo make install
there - everything runs fine.
What is wrong with cpan
there? How this could be fixed?
Upvotes: 0
Views: 332
Reputation: 118605
make: execvp: foo: Permission denied
happens when foo
is some program that does not have execute permission. Find the true
program in your $PATH
(typically /bin/true
or /usr/bin/true
, but maybe there's another one if you have an idiosyncratic $PATH
) and make sure you have execute permission for it.
Upvotes: 3
Reputation: 69244
If you're installing the module into the system library, you can probably save yourself considerable pain by installing the pre-build RPM package.
$ sudo yum install perl-Log-Log4perl
Upvotes: 4