Installing Circos on Mac is a problem for many new users. This guide provides you the step-by-step guide that helps you install Circos on your Mac (tested on OS X 10.8).
Homebrew is all you need for your Unix adventure, whether you want to learn to code or just use it for Circos. It is basically a package manager that allows you to download libraries and software easily, analogous to Ubuntu’s
apt-get. It is actively updated via the git system, so it is near the edge.
First, you will need Xcode, so go to the App Store and download it. What you need is the Command Line Tool. After you are done with installing Xcode, start the app and go to the menu: Xcode > Preferences. Under the Download tab, you will see the iOS Simulators and Command Line Tools. Click the Install button inline with Command Line Tools.
After installing the Commmand Line Tools, you need to use Terminal, a command line interface which you can find in Applications, to install Homebrew.
In Terminal, you will see
computer-name:/ username$. For brevity, I will omit everything before the
$. Enter the command after
Now you are set to use Homebrew.
Circos requires the following to work:
You need to get freetype first because when you are installing gd, it will get libpng and jpeg for you automatically.
After install freetype, you need to install gd with freetype.
Install Perl modules is quite similar to what you have did so far. Perl has a module manager called CPAN. In order to install modules, you have to access CPAN.
You will see the command line changed to
cpan>. Issue the following command (below) to install all the modules Circos needs, except GD.
cpan> install Config::General Font::TTF List::MoreUtils Math::Bezier Math::VecStat Math::Round Params::Validate Readonly Regexp::Common Set::IntSpan Text::Format
After installing the modules, you will need to download the perl GD module on your own and compile it. Exit CPAN by using
Now let’s download GD manually,
Extract and compile the content,
Now you have everything you need for Circos. Let’s download Circos!
Now when you type
circos on your command line. You should see an error prompt by Circos, not
-bash: circos: command not found.
CircosAPI is Perl module, but it is not available on CPAN. However, you can get it from github by running the following command.
QED isn’t it?