Hi all,
I'm stuck so I thought'd I ping out to see if anyone else has done
this. Of course, asking for help is the best to be sure I find the
answer myself in 10 minutes.
I'm on the latest version of OS X w/an Intel chip. I'm running Ruby
1.8.4
I'm trying to install the Ruby Java Bridge and it needs to compile
native extensions. mkmf says it's failing because it can't find jni.h
Here's the trace:
jrr-mbp:~/Desktop/Ruby Java Bridge Projects/rjb-1.0.0 jared$ ruby
setup.rb config
---> bin
<--- bin
---> lib
<--- lib
---> ext
/usr/local/bin/ruby "/Users/jared/Desktop/Ruby Java Bridge
Projects/rjb-1.0.0/ext/extconf.rb"
*** /Users/jared/Desktop/Ruby Java Bridge
Projects/rjb-1.0.0/ext/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=/Users/jared/Desktop/Ruby Java Bridge
Projects/rjb-1.0.0/ext
聽聽聽聽聽聽聽聽--curdir
聽聽聽聽聽聽聽聽--ruby=/usr/local/bin/ruby
setup.rb:535:in `command': 'system /usr/local/bin/ruby
"/Users/jared/Desktop/Ruby Java Bridge
Projects/rjb-1.0.0/ext/extconf.rb" ' failed (RuntimeError)
聽聽聽聽聽聽聽聽from setup.rb:1112:in `extconf'
聽聽聽聽聽聽聽聽from setup.rb:1107:in `config_dir_ext'
聽聽聽聽聽聽聽聽from setup.rb:1321:in `traverse'
聽聽聽聽聽聽聽聽from setup.rb:1338:in `dive_into'
聽聽聽聽聽聽聽聽from setup.rb:1319:in `traverse'
聽聽聽聽聽聽聽聽from setup.rb:1313:in `exec_task_traverse'
聽聽聽聽聽聽聽聽from setup.rb:1308:in `exec_task_traverse'
聽聽聽聽聽聽聽聽from setup.rb:1097:in `exec_config'
聽聽聽聽聽聽聽聽from setup.rb:878:in `exec_config'
聽聽聽聽聽聽聽聽from setup.rb:710:in `invoke'
聽聽聽聽聽聽聽聽from setup.rb:674:in `invoke'
聽聽聽聽聽聽聽聽from setup.rb:1352
jrr-mbp:~/Desktop/Ruby Java Bridge Projects/rjb-1.0.0 jared$
Here's the ext/mkmf.log file
jrr-mbp:~/Desktop/Ruby Java Bridge Projects/rjb-1.0.0 jared$ cat
ext/mkmf.log
have_header: checking for jni.h... -------------------- no
"gcc -E -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.5.2 -g -O2 -pipe
-fno-common conftest.c -o conftest.i"
conftest.c:1:17: error: jni.h: No such file or directory
checked program was:
/* begin */
#include <jni.h>
/* end */