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!
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.
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-interestHere's hoping it at least has the patch for the nasty stock 5.10.0 @_ assignment performance hit.
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!
* 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
*
* 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