Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jj (2990)

jj
  (email not shown publicly)
http://perl.jonallen.info/

Software development manager for OpusVL [opusvl.com], member of Birmingham Perl Mongers [pm.org] and maintainer of http://perldoc.perl.org [perl.org].

Follow me on Twitter at twitter.com/JJ_Perl [twitter.com].

Journal of jj (2990)

Wednesday August 26, 2009
08:59 AM

local::lib installation walkthrough

[ #39534 ]

I've put together a short guide to installing Perl modules without root access using local::lib.

If anyone has any corrections or suggestions for improvement, please let me know!

Cheers,

JJ

Update: Yasuhiro Matsumoto has kindly posted a Japanese translation of the guide. Thanks!

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Followed the guide, and ran only into one snag - the FTP site with the mirrors list was not accessible behind the local firewall (timeouts and annoyances), which made the bootstrap end with a CPAN.pm install that wasn't configured completely.

    A quick start of cpan(1) and an "o conf connect_to_internet_ok urllist" followed by a "install Bundle::CPAN" and I was up and running. Thanks! :)

  • Fresh install of OSX last week. Totally forgot about local lib before update the sys perl.

    No matter, this weekend will be a fresh install of snow leapard, so I get another shot.

    Speaking of, I wonder what version of perl comes on 10.6.

  • Great page, JJ! I gave a talk on local::lib to the Milton Keynes Perl mongers recently, and the slides are available at http://miltonkeynes.pm.org/talks/2009/07/oliver_gorwits_local_lib.pdf [pm.org]

    Spread the local::lib love!

  • * The -z option on tar is not standard. The more appropriate -- for cross-platform purposes -- command is

    gzip -dc local-lib-1.004004.tar.gz | tar -xf -

    * You should mention that you should only run make install if none of the steps fails. Perhaps phrasing the code as

    perl Makefile.PL --bootstrap && make && make test && make install

    * .bashrc is only one of the possible places for that code to go (for instance, it is .profile under ksh) and you need different code if you are using csh.

    • Thanks for your comments, I've updated the article accordingly. Note that the guide is aimed at UNIX users who don't have root access, that's why there's no information about Windows. Cheers, JJ