Archive for the ‘mac’ tag
At Local Offer Network, we use GNU scientific library to categorize all the offers that we aggregate using scientific methods. We leverage a rubygem called gsl for this heavily. Since this is a native gem installing it is a little tricky atleast on mac OSX.
In order to install, we have to install an older version of gsl library using homebrew first.
$ brew install gsl114
This installs the gsl version v1.14. Please note that latest version of gsl library (brew install gsl) will not work for the gsl gem. If you have already installed latest gsl, remote it (brew remove gsl) and start over.
Once this is installed successfully, the gsl gem should install fine.
$ gem install gsl
Any a developer switching from linux to mac, the way to set environment variables is similar yet different enough that is annoying at times. I have so far failed to find a good documentation on where and how to set those in mac osx. Today I found one here.
Mac OS X applies .bash_profile and .profile only for Terminal.app environment and Apple’s technical documentation suggests using ~/.MacOSX/environment.plist for other applications. So, by default PATH value will differ for RubyMine and the console.
For managing the global environments, it also recommends a system preference pane app. This worked for me.