Hbplus, a guide for installation in Mac OS X and a prelude for Ligplot.


This is the second part of a guide for installing naccess, hbplus and ligplot in Mac OS X. All of this program are distributed as source code. They are free but you are required to sign and follow a license agreement to get the code.

Ok, that being said there are a few requirements besides the source code. Requirement number one, find your terminal. Unless you are a command line geek, you’ll need to reach into your Applications/Utilities folder to launch the terminal. The easiest way to do that would be pressing command+Shift+U. That will open a Finder window to the right folder.

Second, you need to install Xcode. From OS X 10.6 to 10.8 you can get Xcode for free through the App Store. Once that is installed you also have to make sure you install the command line tools. To do so, after you install Xcode, launch it and go to preferences. There you’ll go to the Downloads tab and click on install command line tools. (There are very good guides to do this and those can be easily found with google).

Third and last, I have found that having Fink installed is always very useful. (I have a guide to install Fink in Mac OS X 18.0 elsewhere in my blog.) Besides its usefulness, the Fink installation itself gives you a nice directory tree to place any program you dare to compile.

An optional step would be to setup additional compilers such as intel C+ and intel Fortran.

Well, let’s get it on.

Let’s start with hbplus. If you got the right files, you should have a hbplus.tar.gz file. To make things easy, move it to your desktop. To decompress, open a Terminal, move to the Desktop (cd Desktop) then type in:

tar -zxvf hbplus.tar.gz

This will create a folder hbplus. Move into it (cd hbplus). In contrast to naccesshbplus comes with a Makefile. Thus, all we need to do is type:

make

And if you have gcc (and the command line tools installed) hbplus should be already compiled.
As with naccess, now move hbplus to /sw/bin/custom/hbplus and add the following lines to your .profile:

export hbdir='/sw/bin/custom/hbplus'
PATH=$PATH":$hbdir"

And that should be it! Congratulations!

For questions, go to the comments.

Comments

Popular Posts