Tuesday, March 02, 2010

Perl on Snow Leopard

I just spent the past few hours messing with perl libraries and system libraries just so I could install and utilize the perl GD package to draw line graphs for a bioinformatics assignment (GD::Graph::lines specifically). For anyone that stumbles upon this page thinking that upgrading to Snow Leopard munged your pristine and not frequently used but for that one class all that time ago perl installation, here’s what I did:

Zlib barfed out this error message

Deep recursion on subroutine "Compress::Raw::Zlib::AUTOLOAD"

so I found this article that suggested I clear out all Compress::Zlib files and reinstall. Once I did that I reinstalled GD and Zlib from source by navigating to the directory of the unzipped source and issuing

make install (you may need to add sudo)

Once I got those installed from the perl CPAN shell issuing install GD worked as expected. Hoo-rah.