- I install Xcode (from the dvd or from ADC)
- I install MacPorts using the dmg https://www.macports.org/install.php
- I install perl5.10 (first thing after install MacPorts) This will nicely override System's Perl without altering it: (see also my other post)
sudo port install perl5 +perl5_10
- I install local::lib (which keeps all my installed Perl modules local, in my home directory): Basically I run the bootstrapping steps provided by https://search.cpan.org/perldoc?local::lib
- I install git:
sudo port install git-core +bash_completion+doc+svn
- Then I install my dotfiles (I basically clone https://github.com/yannk/dotfiles-yann and run make) (which has settings for local::lib, git etc...). I mention it here because I find it convenient for me, but it's totally optional of course.
- Then I install CPAN Minus...
git clone git://github.com/miyagawa/cpanminus.git cd cpanminus perl Makefile.PL make install
Then each time I need a module from the cpan it resolves around a simple:
in most cases, thanks to the elegance of CPAN minus. For a bit more complex cases (when there is an external dependency, like a C library), I first install the missing libs from macports).