local::lib installation walkthrough

jj on 2009-08-26T13:59:14

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!


Worked nicely

sjn on 2009-08-26T16:34:34

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! :)

Ooops

jk2addict on 2009-08-26T16:44:57

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.

Re:Ooops

jk2addict on 2009-08-26T18:51:37

Looks like it comes with 5.10.0:
http://michaelflux.com/snow-leopard-10a380-notes-of-interest

Here's hoping it at least has the patch for the nasty stock 5.10.0 @_ assignment performance hit.

My local::lib talk

oliver on 2009-08-26T18:50:04

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

Spread the local::lib love!

Just a few notes

cowens on 2009-08-27T23:18:58

* 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.

* you have completely ignored Win32

Re:Just a few notes

jj on 2009-09-01T10:31:10

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