On my last post about installing Circos on OS X, we have dealt with the traditional way of creating the required libraries for Circos to run. Most of the comments that post gets are related to difficulties of GD in getting some of the libraries correct (either PNG or JPEG). I have tested another way of installing these libraries and running Circos properly.
In the past, MacPorts was the main source of pre-compiled libraries and programs for OS X that could be installed directly from the CLI, something like Debian’s apt-get. But, at the same time, it was a nice tool to have, MacPorts had a lot of problems and sometimes couldn’t find the proper files, or even won’t complete the installation. Lately, Homebrew has been gaining a lot of ground replacing MacPorts and it’s a very easy tool to use. Homebrew has a list of recipes to download, compile and symlink software ohn OS X (you might have problems here and there, but it’s quite stable).
I used an OS X Virtual Machine to install Circos’ required libraries in order to avoid conflicts to my currently installed versions.
Starting the terminal, we first need to install Homebrew, just run:
srctemp$ curl -O http://www.cpan.org/authors/id/L/LD/LDS/GD-2.49.tar.gz (if curl fails copy and past on your browser)srctemp$ tar -xzvf GD-2.49.tar.gz
srctemp$ cd GD-2.49
srctemp/GD-2.49$ perl Makefile.PL
srctemp/GD-2.49$ sudo make install