Showing posts with label tutorial. Show all posts
Showing posts with label tutorial. Show all posts

Sunday, August 29, 2010

Using Perl CPAN on Mac OSX

Some of my notes on CPAN usage in Snow Leopard:

  • CPAN comes preinstalled in Snow Leopard. No new install needed and in fact not recommended unless something is broken or you know what you are doing.
  • Always login into CPAN via sudo or root (sudo is the recommended option): sudo perl -MCPAN -e "shell"
  • Its recommended to set FTP into passive mode so as to avoid having any troubles due to CPAN not being able to download from repositories via ftp. Create a file ~/.bash_login and add this to it: export FTP_PASSIVE=1
  • You can install any CPAN modules like this (here I am installing XMLWriter module) from CPAN prompt:install XML::Writer