Subject: | Inline::MakeMaker doesn't work with win32 (nmake) (indication for a fix) |
Hi all!
I encountered a problem, and while I can Google for others with the same problem, I can't find a solution. But I found a workaround.
When I try to follow the advice about installing a module with Inline::CPP at http://search.cpan.org/~ingy/Inline-0.44/Inline-FAQ.pod#Whatever_happened_to_the_SITE_INSTALL_option?
that doesn't work with win32 and nmake.
Running perl Makefile.PL creates the Makefile ok, but then running make blows up with:
... copy files ...
NMAKE : fatal error U1073: don't know how to make 'PerlDecode.inl'
Stop.
Ok. Looking at the Makefile, I can see at the bottom:
# --- MakeMaker inline section:
.SUFFIXES: .pm .inl
.pm.inl:
$(PERL) -Mblib -MInline=NOISY,_INSTALL_ -MGame::Decoder::PerlDecode -e1 0.01 $(INST_ARCHLIB)
pure_all :: PerlDecode.inl
# The End is here.
The problem seems to be that nmake can't figure out how to run the first line (to produce PerlDecode.inl) so that it then can run it (or something, I'm Makefile syntax challenged).
My workaround is to do this manually:
nmake (blows up)
perl -Mblib -MInline=NOISY,_INSTALL_ -MGame::Decoder::PerlDecode -e1 0.01 blib/arch
nmake (now works)
nmake test
nmake install
It sucks, but it seems to work.
Any idea on how to make nmake get a clue?
OS: w2k
perl -v:
This is perl, v5.8.3 built for MSWin32-x86-multi-thread
(with 8 registered patches, see perl -V for more detail)
/J