☮ 18 Oct 2009
I wanted to try experimenting with SVD recommenders in Ruby (via this fantastic blog post http://www.igvita.com/2007/01/15/svd-recommendation-system-in-ruby/) and was having a hell of a time trying to install Ruby’s linalg. When I saw that there was also an example using rb-gsl, I was thrilled because rb-gsl is available from MacPorts. No problem, right? Wrong!
Currently if you try to install rb-gsl form MacPorts (on Snow Leopard) you will get a build error. If you download the latest release of rb-gsl (1.10.3 at the time of this writing) you will get the same build error. It appears to have some code that doesn’t work on Snow Leopard. Here is how I got it installed.
$ sudo port install gsl plotutils$ svn checkout svn://rubyforge.org/var/svn/rb-gsl$ cd rb-gsl/trunk/rb-gsl$ sudo ruby setup.rb config --prefix=/usr/localDLDFLAGS = -L.LDSHARED = $(CC) -pipe -bundle -undefined dynamic_lookup$ sudo ruby setup.rb setup$ sudo ruby setup.rb installEnjoy!
If you are installing this lib to test out the example from above then you may want to check out my comment on that article.
Sources:
http://rubyforge.org/forum/forum.php?thread_id=19389&forum_id=1225
http://rubyforge.org/forum/forum.php?thread_id=45613&forum_id=1225