Create a new account
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].
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!
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.
Looks like it comes with 5.10.0:http://michaelflux.com/snow-leopard-10a380-notes-of-interest [michaelflux.com]
Here'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 [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.
Get More Comments