Step-by-step procedure of building MacPorts gfortran and AmberTools 1.3 in Mac OS X 10.6
This is what I would do if I got a brand new Mac OS X machine using gfortran to build AmberTools 1.3 on it.
- Find the Mac OS X installation CDs/DVD, start to install Xcode Developer Tools.
If you left it at home, try to download it at the Apple Developer Connection site. Make sure you have installed "Unix Development" (default) - Download the MacPorts Disk Image from the MacPorts' website.
- Mount the disk image and install the pkg, running the system's Installer by double-clicking on the pkg contained therein, following the on-screen instructions until completion.
- Open a new shell window and do later stuff in this shell, this is to make sure that changes to the environment variables have taken effect.
- check if your PATH environment variable really contains
/opt/local/bin
and/opt/local/sbin
by running "echo $PATH
" - check upgrades to MacPorts: "
sudo port -v selfupdate
" - run "
sudo port install gcc44
" run "(not necessary)mkdir ${HOME}/bin
"- append this line to the end your ~/.bashrc (If you are using CSH/TCSH, you must be very savvy, so you don't need no documentation...
export PATH=${HOME}/bin:$PATH
- run "
export PATH=${HOME}/bin:$PATH
" -
run "ln -s /opt/local/bin/gfortran-mp-4.4 ~/bin/gfortran
"
(Original steps were stupid, try following steps:) run "sudo port install gcc_select; sudo gcc_select mp-gcc44
" - Download AmberTools from http://ambermd.org/#AmberTools (Safari will place it to ~/Downloads)
- run "
tar jxvf ~/Downloads/AmberTools-1.3.tar.bz2 -C ~/
", this will extract an amber11 folder in your home directory. - Now it would be a good time to append this line to your ~/.bashrc
export AMBERHOME=${HOME}/amber11
- run "
export AMBERHOME=${HOME}/amber11
" as well - run "
cd ~/amber11/src; ./configure -macAccelerate gnu
" - run "
make -f Makefile_at
" and wait - After "make" stops, check to see if there is any error. If your building process indeed stopped prematurely, report it to the Amber mailing list. Please mention your OS version and compiler you used.
- run "
cd ~/amber11/test; make -f Makefile_at
" to check the testing cases result. Please make sure your environment variable $AMBERHOME is correct before you run the test.