Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Do you know where your variables are?
 
PerlMonks  

Re: MakeAll.Pl (Config.pm)

by tye (Sage)
on May 01, 2004 at 12:56 UTC ( [id://349641]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to MakeAll.Pl

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:

perl Makefile.PL perl -make -em perl -make -em test perl -make -em install

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        

Replies are listed 'Best First'.
Re: Re: MakeAll.Pl (Config.pm)
by ysth (Canon) on May 02, 2004 at 06:21 UTC
    something like:
    $make = `$perl -V:make`; $make =~ s/.*?'//; $make =~ s/'.*//;
    Someone had proposed something like a -V:make= syntax that would just output the value; don't think it ever got applied, though.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://349641]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.