meaning of "it"

Archive for the ‘mac’ tag

Installing gsl gem on mac osx

without comments

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

Written by Sharad

April 30th, 2012 at 2:32 pm

Posted in All

Tagged with , , ,

Setting environment variables in Max OSX

without comments

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.

My takeaway:

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.

Written by Sharad

May 16th, 2011 at 10:12 am

Posted in All,Technology

Tagged with , , ,