buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Billemont <lhun...@gmail.com>
Subject Re: error installing buildr gem on MacOS 10.5.2
Date Wed, 02 Apr 2008 07:08:31 GMT
When you execute sudo, you loose your current environment.

Use:

$ sudo su -
$ JAVA_HOME=/... gem install buildr


On 02 Apr 2008, at 05:33, Stephen Bannasch wrote:
> When I tried to install the gem it failed and complained that  
> JAVA_HOME was not set ... but JAVA_HOME is set:
>
> $ echo $JAVA_HOME
> /System/Library/Frameworks/JavaVM.framework/Home
>
> The install is using the stock 1.8.6 MRI Ruby that comes with Leopard.
>
> Here's what the install failure looks like:
>
> $ sudo gem install buildr
> Password:
> Updating metadata for 153 gems from http://gems.rubyforge.org
> .........................................................................................................................................................
> complete
> Building native extensions.  This could take a while...
> ERROR:  Error installing buildr:
> 	ERROR: Failed to build gem native extension.
>
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby  
> extconf.rb install buildr
> *** extconf.rb failed ***
> Could not create Makefile due to some reason, probably lack of
> necessary libraries and/or headers.  Check the mkmf.log file for more
> details.  You may need configuration options.
>
> Provided configuration options:
> 	--with-opt-dir
> 	--without-opt-dir
> 	--with-opt-include
> 	--without-opt-include=${opt-dir}/include
> 	--with-opt-lib
> 	--without-opt-lib=${opt-dir}/lib
> 	--with-make-prog
> 	--without-make-prog
> 	--srcdir=.
> 	--curdir
> 	--ruby=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/ 
> bin/ruby
> extconf.rb:44: JAVA_HOME is not setted. (RuntimeError)
>
>
> Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/ 
> rjb-1.1.3 for inspection.
> Results logged to /Library/Ruby/Gems/1.8/gems/rjb-1.1.3/ext/ 
> gem_make.out
>
>
>


Mime
View raw message