XP is just a number | |
PerlMonks |
Re: MakeAll.Pl (Config.pm)by tye (Sage) |
on May 01, 2004 at 16:56 UTC ( [id://349641]=note: print w/replies, xml ) | Need Help?? |
Have you run this on Unix? You split $ENV{PATH} on ';', which is only appropriate for Win32. You should use Config, it knows what separator to use on each platform. You should also use Config.pm to figure out what 'make' to run. It'd be nice to do this per perl rather than just based on the perl being used to run this script. This makes me think it'd be nice to write ake.pm so the standard install dance could be changed to:
and ake.pm could prompt to download and install nmake.exe if appropriate and point users toward FAQs if the module has XS code but they don't have the right C compiler. (: Short of that, you could use $make= `$perl -V=make` (sorry, don't have Perl reinstalled here so I can't test that so I probably got it a bit wrong). - tye
In Section
Code Catacombs
|
|