Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: automating perl installation

by ikegami (Patriarch)
on Oct 10, 2011 at 06:58 UTC ( [id://930541]=note: print w/replies, xml ) Need Help??


in reply to automating perl installation

Some common options can be provided as parameters to Configure (e.g. thread support). See INSTALL. INSTALL also mentions:

=head2 Site-wide Policy settings After Configure runs, it stores a number of common site-wide "policy" answers (such as installation directories) in the Policy.sh file. If you want to build perl on another system using the same policy defaults, simply copy the Policy.sh file to the new system's perl build directory, and Configure will use it. This will work even if Policy.sh was generated for another version of Perl, or on a system with a different architecture and/or operating system. However, in such cases, you should review the contents of the file before using it: for example, your new target may not keep its man pages in the same place as the system on which the file was generated. Alternatively, if you wish to change some or all of those policy answers, you should rm -f Policy.sh to ensure that Configure doesn't re-use them. Further information is in the Policy_sh.SH file itself. If the generated Policy.sh file is unsuitable, you may freely edit it to contain any valid shell commands. It will be run just after the platform-specific hints files.

Does that help?

Replies are listed 'Best First'.
Re^2: automating perl installation
by ansh batra (Friar) on Oct 10, 2011 at 07:10 UTC
    but i want to change defaults at following 4 places
    Installation prefix to use?(~name OK)/usr/local /usr
    Set Directories to use for library searches ? /usr/local/lib /lib /usr/lib
    what libraries to use ? none -lnsl -ldl -lm -lcrypt -lutil -lc
    Build a shared libperl.so(y/n)n y

    policy.sh is showing only installation prefix.

      After running Configure, it says

      If you compile perl5 on a different machine or from a different object directory, copy the Policy.sh file from this object directory to the new one before you run Configure -- this will help you with most of the policy defaults.

      Sounds like you can run Configure once and copy Policy.sh around.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-19 14:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found