Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: What are the "prefix" and "lib" arguments to makefile.pl used for?

by tphyahoo (Vicar)
on Jul 31, 2006 at 14:19 UTC ( #564744=note: print w/ replies, xml ) Need Help??


in reply to Re: What are the "prefix" and "lib" arguments to makefile.pl used for?
in thread What are the "prefix" and "lib" arguments to makefile.pl used for?

I understand vaguely supporting PREFIX has become hairy. What I don't understand is, what are the best practices to deal with the situation.

Is tinita's suggestion of using LIB and PREFIX together a best practice for installing modules locally?

Will this ever fail?

If yes, when will if fail?

If no (ie, it shouldn't ever fail), shouldn't the documentation for installing perl modules locally be patched to mention this?

More concretely: if there's a scenario like the one you mentioned, where LIB is calculated from PREFIX, but the PREFIX value was also specified to Makefile.PL, which value will ultimately wind up being used?


Comment on Re^2: What are the "prefix" and "lib" arguments to makefile.pl used for?
Re^3: What are the "prefix" and "lib" arguments to makefile.pl used for?
by jhourcle (Prior) on Jul 31, 2006 at 14:43 UTC

    If you pass both, PREFIX will be used to generate PATH and MANPATH, while the LIB you passed in will be used as is.

    And I'm relucant to say 'best practice', as what's best in each situation varies greatly. Specifying both should get the .pm files installed to the correct place, but I can't be sure that your man pages or executables will be.

    And to respond to your other question --

    'vendor' == Vendors of operating systems that supply already compiled versions of perl.

    As for examples, the link I gave (which was labeled 'special', and could have been labeled better), is a talk by Michael Schwern titled 'Why PREFIX Will Never Work'. Slide 8 talks about Apple's values in MacOSX, and slide 9 talks about the values in Debian.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://564744]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2014-07-26 04:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls