Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Hello Perl300,

Since you are running *nix, I'll comment on what I do.

Typically, I have at least 3 or 4 Perls on any *nix boxes that I am the admin for. I use the '/usr/local/bin/' to have a symbolic link to the 'non-system' Perl, which I usually install in '/usr/opt/'. Today, I never touch the system Perl and all updates come from the OS update mechanism.

So let's do an example:

  • I download Perl ( 5.22.1 ) to '/home/Perl/Perl5.22.1/'.
  • I follow the directions for a quick install (usually works perfectly) and configure to install with:
        config_args='-des -Dprefix=/usr/opt/perl5.22.1 -Dusethreads . . .'
  • After all makes work, I issue:
        ln -s /usr/opt/perl5.22.1/bin/perl5.22.1   myperl # myperl is unique name for each Perl
        Test: myperl -V

If you want to use 'cpan' on the command line, then do a link to the specific one ( ie, mycpan ). I find it easier to
    myperl -MCPAN -e 'install "..."'

Note 1: I've found problems with Perls that are not owned by root. YMMV.

Note 2: I usually have 2 Perls for each version, 1 with threads and 1 without. On the *nixes I use, threads has a lot of overhead.

Regards...Ed

"Well done is better than well said." - Benjamin Franklin


In reply to Re: [Solved]: How to install modules for local perl without changing anything on system perl? by flexvault
in thread [Solved]: How to install modules for local perl without changing anything on system perl? by Perl300

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 13:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found