Home arrow The All New Blog arrow Travel arrow Part 5 - Moving the tools to OSX
Part 5 - Moving the tools to OSX Print E-mail
User Rating: / 0
PoorBest 
Written by Stephen Baines   
Monday, 26 October 2009

I'm in the process of moving the tools to make the slices over to OSX, specifically Snow Leopard.

So far I've made the leap with the perl processing tools, but you need to coax them a little to get them working...

 

The first thing is that the Perl installed with Snow Leopard (and by all accounts earlier versions) does not have all the components you need, specifically GDBM.

To get that in, first you need to install XCode either from the DVD or from Apple's developer website .

Next, you need to install Darwin Ports / MacPorts for OSX.

Then, you need to install GDBM .

Then you need to install wget, in the same way as GDBM (ie sudo port install wget)

Finally comes the slightly tricky bit. You need to install the perl module to make it work... For some reason the relevant perl module, gdbm_file, isn't included in the OSX perl install of 5.10.0.

Create a temporary directory and change to it.

Run the following commands.

wget http://cpansearch.perl.org/src/DAPM/perl-5.10.1/ext/GDBM_File/GDBM_File.pm
wget http://cpansearch.perl.org/src/DAPM/perl-5.10.1/ext/GDBM_File/GDBM_File.xs
wget http://cpansearch.perl.org/src/DAPM/perl-5.10.1/ext/GDBM_File/Makefile.PL
wget http://cpansearch.perl.org/src/DAPM/perl-5.10.1/ext/GDBM_File/typemap
wget http://cpansearch.perl.org/src/DAPM/perl-5.10.1/ext/GDBM_File/hints
wget http://cpansearch.perl.org/src/DAPM/perl-5.10.1/ext/GDBM_File/hints/sco.pl
wget http://cpansearch.perl.org/src/DAPM/perl-5.10.1/ext/GDBM_File/t
wget http://cpansearch.perl.org/src/DAPM/perl-5.10.1/ext/GDBM_File/t/gdbm.t

perl Makefile.PL INC=-I/opt/local/include/ LIBS='-L/opt/local/lib -lgdbm'
sudo make test

sudo make install

After that, the tools should work. Any perl modules missing can then easily be installed with CPAN.

 

 
Next >
© 2010 The Kitsch Camp Palace - The Home of Stephen on the web
Joomla! is Free Software released under the GNU/GPL License.