Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: automating perl installation

by ikegami (Pope)
on Oct 10, 2011 at 06:58 UTC ( #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 file. If you want to build perl on another system using the same policy defaults, simply copy the file to the new system's perl build directory, and Configure will use it. This will work even if 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 to ensure that Configure doesn't re-use them. Further information is in the Policy_sh.SH file itself. If the generated 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 y 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 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 around.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930541]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2018-06-18 15:29 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (110 votes). Check out past polls.