Re: Installation of MakeMaker on WindowsXP
- Original Message - From: Michael G Schwern [EMAIL PROTECTED] . . I think this is the real problem. Your CPAN shell is holding MM_Unix.pm open and on Windows you can't (normally) delete a file that another process is holding open. Try 6.30_04 instead. It has an updated ExtUtils::Install that handles this sort of thing. http://search.cpan.org/~mschwern/ExtUtils-MakeMaker-6.30_04/ No joy there, either. (I had a bit of time to spend so played around a little.) I did everything manually to avoid any problems that CPAN.pm might throw up, but with 6.30_04 at the 'nmake install' I get: Cannot forceunlink E:\Perl638\lib\ExtUtils\MM_Unix.pm: Permission denied at E:/Perl638/lib/File/Find.pm line 519 NMAKE : fatal error U1077: 'E:\Perl638\bin\perl.exe' : return code '0xff' Stop. (Note that this is build 638, perl 5.6.1. The problems arising here do not occur on perl 5.8.8.) Taking Randy's advice of installing ExtUtils::Install, one first has to modify the Makefile.PL to specifically 'use File::Spec;' then to remove the 'NO_META = 1,' in %WriteMakefile. But then I got: E:\comp56\ExtUtils-Install-1.41perl Makefile.PL Checking if your kit is complete... Looks good Can't locate object method init_main via package PACK001 (perhaps you forgot to load PACK001?) at E:/Perl638/lib/ExtUtils/MakeMaker.pm line 425. E:/Perl638/lib/ExtUtils/MakeMaker.pm is version 5.45 (which ships as standard with As build 638). Is there a simple workaround to the above problem ? It's perl 5.6.1, after all, and I sort of lost interest in pursuing it :-) In the end, the way I installed EU::MM-6.30_04 into build 638 was to create the directory 'D:/foo' and then run: perl Makefile.PL PREFIX=D:/foo nmake test (Test 4 of build_man.t failed, but I ignored that) nmake install Then I copied the 'D:/foo/bin' and 'D:/foo/lib' to 'E:/Perl638', accepting all prompts to overwrite existing files. Now I have EU::MM-6.30_04 installed in build 638 (perl 5.6.1) of ActiveState perl: E:\perl -MExtUtils::MakeMaker -e print $], \ \, $ExtUtils::MakeMaker::VERSION 5.006001 6.30_04 And that has also given me version 1.42 of EU::Install: E:\perl -MExtUtils::Install -e print $ExtUtils::Install::VERSION 1.41 Cheers, Rob
Re: Installation of MakeMaker on WindowsXP
Sisyphus wrote: - Original Message - From: Michael G Schwern [EMAIL PROTECTED] . . I think this is the real problem. Your CPAN shell is holding MM_Unix.pm open and on Windows you can't (normally) delete a file that another process is holding open. Try 6.30_04 instead. It has an updated ExtUtils::Install that handles this sort of thing. http://search.cpan.org/~mschwern/ExtUtils-MakeMaker-6.30_04/ No joy there, either. (I had a bit of time to spend so played around a little.) I did everything manually to avoid any problems that CPAN.pm might throw up, but with 6.30_04 at the 'nmake install' I get: Cannot forceunlink E:\Perl638\lib\ExtUtils\MM_Unix.pm: Permission denied at E:/Perl638/lib/File/Find.pm line 519 NMAKE : fatal error U1077: 'E:\Perl638\bin\perl.exe' : return code '0xff' Stop. (Note that this is build 638, perl 5.6.1. The problems arising here do not occur on perl 5.8.8.) Taking Randy's advice of installing ExtUtils::Install, one first has to modify the Makefile.PL to specifically 'use File::Spec;' then to remove the 'NO_META = 1,' in %WriteMakefile. But then I got: E:\comp56\ExtUtils-Install-1.41perl Makefile.PL Checking if your kit is complete... Looks good Can't locate object method init_main via package PACK001 (perhaps you forgot to load PACK001?) at E:/Perl638/lib/ExtUtils/MakeMaker.pm line 425. E:/Perl638/lib/ExtUtils/MakeMaker.pm is version 5.45 (which ships as standard with As build 638). Is there a simple workaround to the above problem ? It's perl 5.6.1, after all, and I sort of lost interest in pursuing it :-) In the end, the way I installed EU::MM-6.30_04 into build 638 was to create the directory 'D:/foo' and then run: perl Makefile.PL PREFIX=D:/foo nmake test (Test 4 of build_man.t failed, but I ignored that) nmake install Then I copied the 'D:/foo/bin' and 'D:/foo/lib' to 'E:/Perl638', accepting all prompts to overwrite existing files. Now I have EU::MM-6.30_04 installed in build 638 (perl 5.6.1) of ActiveState perl: E:\perl -MExtUtils::MakeMaker -e print $], \ \, $ExtUtils::MakeMaker::VERSION 5.006001 6.30_04 And that has also given me version 1.42 of EU::Install: E:\perl -MExtUtils::Install -e print $ExtUtils::Install::VERSION 1.41 Cheers, Rob Wow, this is a mess! Any idea why this is happening and who if anyone should sort it out? I assume it's AS since 5.8.8 works but not 5.6.1. I'm in the process of trying to get Bioperl and all it's dependencies installed on clean installs of various AS Perl installations in order to run the suite of tests. In addition, I'd also like to make ppd's of all the Bioperl dependencies so that users can install Bioperl via PPM. However, this is proving less straight forward than I had hoped! I started with AS Perl 5.6.1 since PPM4 in AS Perl 5.8.8 seems to be in a bit of a mess from my little experience of using it the other day - it was reporting that it would downgrade a module that wasn't installed and from a version number that didn't exist! There is also talk about having Perl 5.6.1 as minimum for future versions of Bioperl, but it seems to have taken me off at a tangent :o( Thanks for you input! Nathan
Re: Installation of MakeMaker on WindowsXP
Nathan Haigh wrote: Does MakeMaker have to be installed via the perl Makefile.PL route or can it be installed vie perl -MCPAN -e install ExtUtils::MakeMaker? I have tried the latter and it then complains about not being able to locate the Config.pm file. This is probably a self answering question, but i'd like to know if this is how it should be from the authors mouth. Thanks Nathan I've tried the 'perl -MCPAN -e install ExtUtils::MakeMaker' install again this morning on a fresh installation of ActiveState Perl 5.6.1.638. With nmake 1.5 on WinXP Pro SP2. Below is the output I get from the install. It seems to be proceeding quite smoothly until the 'nmake install' where it suffers a fatal error: fatal error U1077. Now I have seen this error before, and it was due to a command exceeding the command line length limit in windows. However, I can't remember if this error is specific to that fault or not, but it might provide you with somewhere to start. Cheers Nath -- SNIP -- Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\testperl -MCPAN install ExtUtils::MakeMaker Can't open perl script install ExtUtils::MakeMaker: No such file or directory C:\Documents and Settings\testperl -MCPAN install ExtUtil::MakeMaker Can't open perl script install ExtUtil::MakeMaker: No such file or directory C:\Documents and Settings\testperl -MCPAN 'install ExtUtils::MakeMaker' Can't open perl script 'install: No such file or directory C:\Documents and Settings\testperl -MCPAN -e 'install ExtUtils::MakeMaker' Can't find string terminator ' anywhere before EOF at -e line 1. C:\Documents and Settings\testperl -MCPAN -e install ExtUtils::MakeMaker Can't locate object method install via package ExtUtils::MakeMaker (perhaps you forgot to load ExtUtils::MakeMaker?) at -e line 1. C:\Documents and Settings\testperl -MCPAN -e shell cpan shell -- CPAN exploration and modules installation (v1.59_54) ReadLine support available (try 'install Bundle::CPAN') cpan install ExtUtils::MakeMaker CPAN: Storable loaded ok Subroutine new redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 34, FIN lin e 1. Subroutine _request_sanity_check redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 112, FIN line 1. Subroutine send_request redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 132, FIN line 1. Subroutine prepare_request redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 2 38, FIN line 1. Subroutine simple_request redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 26 1, FIN line 1. Subroutine request redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 270, FIN line 1. Subroutine get redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 406, FIN li ne 1. Subroutine post redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 414, FIN l ine 1. Subroutine head redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 422, FIN l ine 1. Subroutine _process_colonic_headers redefined at C:/Perl/site/lib/LWP\UserAgent. pm line 430, FIN line 1. Subroutine is_protocol_supported redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 484, FIN line 1. Subroutine protocols_allowed redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 511, FIN line 1. Subroutine protocols_forbidden redefined at C:/Perl/site/lib/LWP\UserAgent.pm li ne 512, FIN line 1. Subroutine requests_redirectable redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 513, FIN line 1. Subroutine redirect_ok redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 517, FIN line 1. Subroutine credentials redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 543, FIN line 1. Subroutine get_basic_credentials redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 550, FIN line 1. Subroutine agent redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 563, FIN line 1. Subroutine _agent redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 575, FIN line 1. Subroutine timeout redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 577, FIN line 1. Subroutine from redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 578, FIN l ine 1. Subroutine parse_head redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 579, FIN line 1. Subroutine max_size redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 580, FI N line 1. Subroutine max_redirect redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 581, FIN line 1. Subroutine cookie_jar redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 584, FIN line 1. Subroutine conn_cache redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 599, FIN line 1. Subroutine use_eval redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 615, FI N line 1. Subroutine use_alarm redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 617, F IN line 1. Subroutine clone redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 625, FIN line 1. Subroutine mirror redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 642, FIN line 1. Subroutine proxy redefined at
Re: Installation of MakeMaker on WindowsXP
Nathan S. Haigh wrote: Nathan Haigh wrote: Does MakeMaker have to be installed via the perl Makefile.PL route or can it be installed vie perl -MCPAN -e install ExtUtils::MakeMaker? I have tried the latter and it then complains about not being able to locate the Config.pm file. This is probably a self answering question, but i'd like to know if this is how it should be from the authors mouth. Thanks Nathan I've tried the 'perl -MCPAN -e install ExtUtils::MakeMaker' install again this morning on a fresh installation of ActiveState Perl 5.6.1.638. With nmake 1.5 on WinXP Pro SP2. Below is the output I get from the install. It seems to be proceeding quite smoothly until the 'nmake install' where it suffers a fatal error: fatal error U1077. Now I have seen this error before, and it was due to a command exceeding the command line length limit in windows. However, I can't remember if this error is specific to that fault or not, but it might provide you with somewhere to start. You might try installing 'ExtUtils::Install', then 'Bundle::CPAN' (from the CPAN.pm shell), followed by restarting the CPAN.pm shell. See if that helps clear up some of the noise. The version of ExtUtils::Install on CPAN can install files that are otherwise locked by the operating system, producing the cannot unlink errors. Not sure about the redifinition warnings, but Bundle::CPAN may clear those up. Randy.
Re: Installation of MakeMaker on WindowsXP
Nathan S. Haigh wrote: I've tried the 'perl -MCPAN -e install ExtUtils::MakeMaker' install again this morning on a fresh installation of ActiveState Perl 5.6.1.638. With nmake 1.5 on WinXP Pro SP2. Below is the output I get from the install. It seems to be proceeding quite smoothly until the 'nmake install' where it suffers a fatal error: fatal error U1077. Now I have seen this error before, and it was due to a command exceeding the command line length limit in windows. However, I can't remember if this error is specific to that fault or not, but it might provide you with somewhere to start. Could be. Send the Makefile. C:\Documents and Settings\testperl -MCPAN install ExtUtils::MakeMaker Can't open perl script install ExtUtils::MakeMaker: No such file or directory C:\Documents and Settings\testperl -MCPAN install ExtUtil::MakeMaker Can't open perl script install ExtUtil::MakeMaker: No such file or directory C:\Documents and Settings\testperl -MCPAN 'install ExtUtils::MakeMaker' Can't open perl script 'install: No such file or directory C:\Documents and Settings\testperl -MCPAN -e 'install ExtUtils::MakeMaker' Can't find string terminator ' anywhere before EOF at -e line 1. C:\Documents and Settings\testperl -MCPAN -e install ExtUtils::MakeMaker Can't locate object method install via package ExtUtils::MakeMaker (perhaps you forgot to load ExtUtils::MakeMaker?) at -e line 1. That last one should have worked, but your CPAN.pm is old so who knows? C:\Documents and Settings\testperl -MCPAN -e shell cpan shell -- CPAN exploration and modules installation (v1.59_54) ReadLine support available (try 'install Bundle::CPAN') cpan install ExtUtils::MakeMaker CPAN: Storable loaded ok Subroutine new redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 34, FIN lin e 1. Subroutine _request_sanity_check redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 112, FIN line 1. Subroutine send_request redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 132, FIN line 1. Subroutine prepare_request redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 2 38, FIN line 1. Subroutine simple_request redefined at C:/Perl/site/lib/LWP\UserAgent.pm line 26 1, FIN line 1. None of these warnings inspires confidence me about the state of your installation. Running make install Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. C:\Perl\bin\perl.exe -MExtUtils::Command -e cp bin/instmodsh blib\script \instmodsh pl2bat.bat blib\script\instmodsh Cannot forceunlink C:\Perl\lib\ExtUtils\MM_Unix.pm: Permission denied at C:/Perl /lib/File/Find.pm line 519 I think this is the real problem. Your CPAN shell is holding MM_Unix.pm open and on Windows you can't (normally) delete a file that another process is holding open. Try 6.30_04 instead. It has an updated ExtUtils::Install that handles this sort of thing. http://search.cpan.org/~mschwern/ExtUtils-MakeMaker-6.30_04/
Re: Installation of MakeMaker on WindowsXP
Nathan Haigh wrote: Does MakeMaker have to be installed via the perl Makefile.PL route or can it be installed vie perl -MCPAN -e install ExtUtils::MakeMaker? It should work fine from the CPAN shell. I have tried the latter and it then complains about not being able to locate the Config.pm file. That's a new one on me. Mind posting the install log?
Re: Installation of MakeMaker on WindowsXP
- Original Message - From: Nathan Haigh [EMAIL PROTECTED] To: makemaker@perl.org Sent: Tuesday, September 19, 2006 12:01 AM Subject: Installation of MakeMaker on WindowsXP Does MakeMaker have to be installed via the perl Makefile.PL route or can it be installed vie perl -MCPAN -e install ExtUtils::MakeMaker? Either way, it's essentially the same thing, isn't it ? I mean, the latter is just an automation of the former. I have tried the latter and it then complains about not being able to locate the Config.pm file. Does using CPAN.pm work ok for you when installing other modules ? (I never use CPAN.pm, so I probably shouldn't be responding at all :-) Cheers, Rob