Sune Karlsson writes
In which way does it fail? Is the configure script executed?
It does not look like it. Compare oaiadm@amorp:~$ cd /tmp/ ; rm -rf ReDIF-perl-2.75/ ; tar xzf /home/adrepec/hubec.repec.org/ReDIF-perl/ReDIF-perl-2.75.tar.gz ; cd ReDIF-perl-2.75/ oaiadm@amorp:/tmp/ReDIF-perl-2.75$ perl Makefile.PL Preparing to install ReDIF perl package. Configure failed, so do I at Makefile.PL line 5. to oaiadm@amorp:~$ cd /tmp/ ; rm -rf ReDIF-perl-2.75/ ; tar xzf /home/adrepec/hubec.repec.org/ReDIF-perl/ReDIF-perl-2.75.tar.gz ; cd ReDIF-perl-2.75/ oaiadm@amorp:/tmp/ReDIF-perl-2.75$ mv Configure Configure.org oaiadm@amorp:/tmp/ReDIF-perl-2.75$ perl Makefile.PL Preparing to install ReDIF perl package. Configure failed, so do I at Makefile.PL line 5. -- Cheers, Thomas Krichel http://openlib.org/home/krichel skype:thomaskrichel
It does not appear that the file is being accessed, as its access time appears unchanged oaiadm@amorp:/tmp/ReDIF-perl-2.75$ ls -l --time=atime Configure -rw-r--r-- 1 oaiadm oaiadm 7321 Oct 2 11:51 Configure oaiadm@amorp:/tmp/ReDIF-perl-2.75$ date ; perl Makefile.PL Sun Oct 2 12:02:50 UTC 2016 Preparing to install ReDIF perl package. Configure failed, so do I at Makefile.PL line 5. oaiadm@amorp:/tmp/ReDIF-perl-2.75$ ls -l --time=atime Configure -rw-r--r-- 1 oaiadm oaiadm 7321 Oct 2 11:51 Configure -- Cheers, Thomas Krichel http://openlib.org/home/krichel skype:thomaskrichel
Thomas Krichel writes
It does not appear that the file is being accessed, as its access time appears unchanged
and from this test, krichel@amorp:~$ ls -l /tmp/o -rw-r--r-- 1 krichel krichel 5302 May 18 10:15 /tmp/o krichel@amorp:~$ cat /tmp/o > /dev/null krichel@amorp:~$ ls -l --time=atime /tmp/o -rw-r--r-- 1 krichel krichel 5302 Oct 2 12:17 /tmp/o this is the current time. So if read, the atime should have changed. Meaning the Configure script is not being be read. -- Cheers, Thomas Krichel http://openlib.org/home/krichel skype:thomaskrichel
Since there is no output from the Configure script (it should ask a few questions about the configuration) it is safe to assume that it didn't execute. Inspecting $@ and other error variables might be useful, or just doing "perl Configure" to see if it compiles. /Sune
-----Original Message----- From: Thomas Krichel [mailto:krichel@openlib.org] Sent: Sunday, October 02, 2016 2:05 PM To: Sune Karlsson Cc: ReDIF-Dev Subject: Re: [ReDev] installing ReDIF-Perl with 5.24
It does not appear that the file is being accessed, as its access time appears unchanged
oaiadm@amorp:/tmp/ReDIF-perl-2.75$ ls -l --time=atime Configure -rw-r--r-- 1 oaiadm oaiadm 7321 Oct 2 11:51 Configure
oaiadm@amorp:/tmp/ReDIF-perl-2.75$ date ; perl Makefile.PL Sun Oct 2 12:02:50 UTC 2016 Preparing to install ReDIF perl package. Configure failed, so do I at Makefile.PL line 5.
oaiadm@amorp:/tmp/ReDIF-perl-2.75$ ls -l --time=atime Configure -rw-r--r-- 1 oaiadm oaiadm 7321 Oct 2 11:51 Configure
--
Cheers,
Thomas Krichel http://openlib.org/home/krichel skype:thomaskrichel
It looks like it just does not look in the current directory to find the Configure script. Adding the current path fixes. Here is a proposal for the beginning for Makefile.PL use Cwd; use ExtUtils::MakeMaker; sub configure { print "I am preparing to install the ReDIF-perl package.\n"; my $pwd = &Cwd::getcwd(); my $configure_script="$pwd/Configure"; if(not -f $configure_script) { die "I can't see my configure script $configure_script."; } do ( "$configure_script" ) or die "My configure script $configure_script failed."; } I suspect that this is o/s independent. Cwd is a core module. -- Cheers, Thomas Krichel http://openlib.org/home/krichel skype:thomaskrichel
participants (2)
-
Sune Karlsson -
Thomas Krichel