Subject: | cannot `perl Makefile.PL` because configure script not executable |
Configure script is not executable when unpacked, so cpan fails. See
attached diff file. Thanks. --mark--
[root@d102 Authen-PAM-0.16-F4OIIE]# perl Makefile.PL
Checking if your kit is complete...
Looks good
Error in configuring the Authen::PAM module.
[root@d102 Authen-PAM-0.16-F4OIIE]# vim Makefile.PL
[root@d102 Authen-PAM-0.16-F4OIIE]# vim Makefile.PL
[root@d102 Authen-PAM-0.16-F4OIIE]# cp !$ !$.orig
cp Makefile.PL Makefile.PL.orig
[root@d102 Authen-PAM-0.16-F4OIIE]# vim Makefile.PL
[root@d102 Authen-PAM-0.16-F4OIIE]# perl Makefile.PL
Checking if your kit is complete...
Looks good
Error in configuring the Authen::PAM module: 'Permission denied'
Running install for module 'Authen::PAM'
Running make for N/NI/NIKIP/Authen-PAM-0.16.tar.gz
CPAN: LWP::UserAgent loaded ok (v2.033)
CPAN: Time::HiRes loaded ok (v1.9715)
Fetching with LWP:
http://mirrors.gossamer-threads.com/CPAN/authors/id/N/NI/NIKIP/Authen-PAM-0.16.tar.gz
CPAN: YAML loaded ok (v0.68)
CPAN: Digest::SHA loaded ok (v5.47)
Fetching with LWP:
http://mirrors.gossamer-threads.com/CPAN/authors/id/N/NI/NIKIP/CHECKSUMS
Checksum for
/root/.cpan/sources/authors/id/N/NI/NIKIP/Authen-PAM-0.16.tar.gz ok
Scanning cache /root/.cpan/build for sizes
DONE
CPAN: Archive::Tar loaded ok (v1.52)
Authen-PAM-0.16/
Authen-PAM-0.16/PAM_config.h.in
Authen-PAM-0.16/META.yml
Authen-PAM-0.16/configure.ac
Authen-PAM-0.16/test.pl
Authen-PAM-0.16/Changes
Authen-PAM-0.16/d/
Authen-PAM-0.16/d/PAM.pm
Authen-PAM-0.16/PAM.xs
Authen-PAM-0.16/MANIFEST
Authen-PAM-0.16/PAM.pm.in
Authen-PAM-0.16/typemap
Authen-PAM-0.16/configure
Authen-PAM-0.16/PAM/
Authen-PAM-0.16/PAM/FAQ.pod
Authen-PAM-0.16/pam.cfg.in
Authen-PAM-0.16/README
Authen-PAM-0.16/Makefile.PL
CPAN: File::Temp loaded ok (v0.21)
CPAN.pm: Going to build N/NI/NIKIP/Authen-PAM-0.16.tar.gz
Checking if your kit is complete...
Looks good
Error in configuring the Authen::PAM module.
Warning: No success on command[/usr/bin/perl Makefile.PL]
NIKIP/Authen-PAM-0.16.tar.gz
/usr/bin/perl Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Failed during this command:
NIKIP/Authen-PAM-0.16.tar.gz : writemakefile NO
'/usr/bin/perl Makefile.PL' returned status 3328
Subject: | Authen-Pam-Makefile-PL.diff |
--- Makefile.PL.orig 2009-06-18 11:53:13.000000000 -0700
+++ Makefile.PL 2009-06-18 11:55:42.000000000 -0700
@@ -1,12 +1,14 @@
use ExtUtils::MakeMaker;
use Config;
+use Fcntl ':mode';
sub configure {
$ENV{'CC'} # If a compiler is not specified on the command line then
or $ENV{'CC'} = $Config{'cc'}; # use the one with which perl was built
+ chmod( 0755, "./configure" ) or die "Cannot make ./configure executable: '$!'";
system("./configure") == 0 or
- die "Error in configuring the Authen::PAM module.\n";
+ die "Error in configuring the Authen::PAM module: '$!'\n";
# returns a reference to anonymous hash which is then interpreted as
# additional options to the WriteMakeFile