buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tal Rotbart" <redbe...@gmail.com>
Subject Re: error installing buildr gem on MacOS 10.5.2
Date Wed, 02 Apr 2008 03:59:55 GMT
Hi there,

I believe the problem stems because you are setting JAVA_HOME for your
user, but when you sudo, gem sees root's environment variables, and
those do not have JAVA_HOME set. I might be wrong though!

Cheers,
Tal

On Wed, Apr 2, 2008 at 2:33 PM, Stephen Bannasch
<stephen.bannasch@deanbrook.org> 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