This can actually be installed directly from GSL source codes. However, I want to use other GNU software easily, so I:
- download fink from http://downloads.sourceforge.net/fink/fink-0.29.10.tar.gz as there is no binary codes for Mac os 10.6.
- $ tar zxvf fink-0.29.10.tar
- $ cd fink-0.29.10
- $ ./bootstrap # Note: I chose 64-bit version to run GSL
- $ /sw/bin/pathsetup.sh
- $ fink selfupdate
next install GSL source codes as no binary for mac+fink
- $ fink install gsl
usually one should run command as below
- $ g++ -I/sw/include -L/sw/lib -lgsl some.cpp
there are many ways to circumvent above -I & -Ls, e.g.
- $ echo alias gsl=\’g++ -I/sw/include -L/sw/lib -lgsl\’ >>~/.bashrc
- restart terminal, now we can compile GSL codes as below
- $ gsl sample.cpp