Ligplot, we've reached our destination.
This is the third 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 (although I am not sure about the details the license, but they can be checked at their respective websites) but you are required to sign an 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 go for ligplot. If you got the right files, you should have a ligplot.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 ligplot.tar.gz
This will create a folder source. Rename it to ligplot (mv source ligplot). Move into it (cd ligplot). Now, ligplot comes with a README and a install.doc, it is the install.doc file which contains instructions to install it. Those instructions are simple, type:
cc -o ligplot ligplot.c -lm
cc -o hbadd hbadd.c -lm
cc -o dimer dimer.c
And if you have gcc, which doubles as cc, (and the command line tools installed) ligplot should be already compiled.
As with the previous instrucctions, now move ligplot to /sw/bin/custom/ligplot and add the following lines to your .profile:
export ligdir='/sw/bin/custom/ligplot'
PATH=$PATH":$ligdir"
Before calling it quits, get the file called het_dictionary.txt (google is your friend) and place it in the ligplot folder.
And that should be it! Congratulations, now you have installed naccess, hbplus and ligplot.
For questions, go to the comments.
Comments