Installing buildr

Installing buildr


sudo gem install buildr -v 1.3.5

recently failed. I got an environment variable JAVA_HOME not set error which was definitely set to /System/Library/Frameworks/JavaVM.framework/Home in ~/.profile.

I noticed later that exporting the java home in that file unfortunately doesn’t have an effect on the environment variables under sudo. The trick is to pass it to sudo.


sudo env JAVA_HOME=$JAVA_HOME gem install buildr -v 1.3.5

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>