Recently in Programming Category

Installing PostgreSQL and DBD::Pg on OSX

PostgreSQL is easy available for OSX thanks to the packages distributed officially by PostgreSQL itself. But if you got a 64-bit version of Perl installed (you probably have if you got a relatively new Intel Mac), DBD::Pg simply won't compile unless you manage to fake its build environment so that it think it will be compiling against a 32-bit Perl installation.

Install Perl in your home directory with perlbrew

In my last article on Perl I was trying to explain how you can use local::lib to install your own set of Perl modules in your home directory. While the last versions of Mac OSX still ships with fairly old versions of Perl (currently 5.8.6 and 5.10), a better idea is to install a complete and more up to date distribution of Perl in your home directory.

Easy installation of Perl modules (as a non-root user)

Installing Perl modules traditionally with the operating systems package system as root has a lot of disadvantages. Often you will be forced to stick around with outdated versions, and when you want to do an upgrade you need to check that every application and user have their requirements or dependencies met. Or the opposite way but less frequent - the new version of the operating system wont let you run your legacy application that requires an old module. Installing smaller Perl modules via cpan and mixing them with already installed packages in /usr/local/lib can work for short while, but in the end you will most likely end up with a mess with a complete reinstallation of all modules as the result.

Last tweets

Follow tagestad on Twitter