-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 9 Mar 2002, Michael G Schwern wrote:

>>MakeMaker breaks horribly when perl is installed
>>under C:\Program Files\Perl or similar.
>
>Could you illustrate the horrible breakage?

% which perl
C:\Program Files\perl\bin\perl.exe
% perl Makefile.PL
Checking if your kit is complete...
Looks good
Unable to find a perl 5 (by these names: C:\Program Files\Perl\bin\perl.exe miniperl 
perl [...])
Writing Makefile for Term::ProgressBar

Then the generated Makefile looks like:

[...]
PREFIX = C:\Program Files\Perl
INSTALLDIRS = site
INSTALLPRIVLIB = $(PREFIX)\lib
INSTALLARCHLIB = $(PREFIX)\lib
INSTALLSITELIB = C:\Program Files\Perl\site\lib
INSTALLSITEARCH = C:\Program Files\Perl\site\lib
INSTALLBIN = $(PREFIX)\bin
INSTALLSCRIPT = $(PREFIX)\bin
PERL_LIB = C:\Program Files\Perl\lib
PERL_ARCHLIB = C:\Program Files\Perl\lib
SITELIBEXP = C:\Program Files\Perl\site\lib
SITEARCHEXP = C:\Program Files\Perl\site\lib
LIBPERL_A = libperl.lib
FIRST_MAKEFILE = Makefile
MAKE_APERL_FILE = Makefile.aperl
PERLMAINCC = $(CC)
PERL_INC = C:\Program Files\Perl\lib\CORE
[...]
$(INST_AUTODIR)\.exists :: C:\Program Files\Perl\lib\CORE\perl.h
        @$(MKPATH) $(INST_AUTODIR)
        @$(EQUALIZE_TIMESTAMP) C:\Program Files\Perl\lib\CORE\perl.h
$(INST_AUTODIR)\.exists
        -@$(CHMOD) $(PERM_RWX) $(INST_AUTODIR)
[...]

Trying to run this with nmake doesn't work:

% nmake

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

NMAKE : fatal error U1073: don't know how to make 'C:\Program'
Stop.


I have experimented with various quoting schemes, but I haven't found
anything that works.  As I mentioned in a previous message, none of " '
\ or ^ seem to do the right thing.  I think a first step might be to
isolate the C:\Program Files\Perl path in a single variable defined at
the top of the makefile.

Another couple of bugettes are the failed 'Unable to find a perl 5'
check performed by MakeMaker itself, and the fact that nmake complains
if the name of a dependency contains a colon.

- -- 
Ed Avis <[EMAIL PROTECTED]>
Finger for PGP key

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8i0YKIMp73jhGogoRApxoAJ4m4Ecm5fgGuxo8h/AvmVPtkgnnggCfQixF
m35CjadUFsygcLIgyacJDTk=
=v1r6
-----END PGP SIGNATURE-----

Reply via email to