How to Install it++ in Mac OS

Mac OS X 10.4 (Tiger): Follow the steps in Brian Tanner’s website. In case it doesn’t work, try to do “./configure –without-blas –without-lapack” If this works, it means that the problem is that the BLAS and LAPACK libraries are not recognized. I solved this problem by following Nico Prananta’s suggestion here, i.e., do “export F77=gfortran”. Somehow that solves the problem (at least for me)

Mac OS X 10.8 (Mountain Lion): I followed these steps (some of them may not be needed):
1. Get gcc-4.7-bin.tar.gz (4.7.1) from http://hpc.sourceforge.net/ then gunzip gcc-lion.tar.gz  and sudo tar -xvf gcc-lion.tar -C /
2 Get g77-intel-bin.tar.gz, then gunzip g77-intel-bin.tar.gz, then sudo tar -xvf g77-intel-bin.tar -C /
3. Add to your ~/.profile the line
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
4. Go to the apple store search for “XCode tools” and install Xcode 4.5.1
5. Get the command line tools (OS X Mountain Lion) from the web apple store and install it (110MB)
6. Instal homebrew (to get fftw). Do
ruby -e “$(curl -fsSkL raw.github.com/mxcl/homebrew/go)”
xcodebuild -license (to agree with the Xcode license)
brew doctor
brew install fftw
brew link -f fftw
(alternatively, you can probably use fink)
7. get it++, unpack it and then sudo ./configure. Most likely it will not work. If it doesn’t, do sudo ./configure –without-blas –without-lapack instead.
8. To solve the problem, do export F77=gfortran
9. Do again sudo ./configure You should see:
10. Then do sudo make and sudo make install
11. To check that everything is fine, do sudo make check

1,693 total views, 3 views today