Your java installation is under D:\software\Java\jdk1.6.0_13, right ?

Make sure jni.h is present under D:\software\Java\jdk1.6.0_13\include\win32
or D:\software\Java\jdk1.6.0_13\include.

On Mon, Apr 5, 2010 at 08:33, kevin <[email protected]> wrote:

> have_header: checking for jni.h... -------------------- no
>
> "gcc -E -I. -IC:/Ruby/lib/ruby/1.8/i386-mingw32 -I.
> -ID:\software\Java\jdk1.6.0_13\include
> -ID:\software\Java\jdk1.6.0_13\include\win32    -g -O2
>  -ID:\software\Java\jdk1.6.0_13\include
> -ID:\software\Java\jdk1.6.0_13\include\win32  conftest.c -o conftest.i"
> checked program was:
> /* begin */
> 1: #include <jni.h>
> /* end */
>
> --------------------
>
> Thanks,
> Kevin Wu.
>
> Antoine Toulme:
>
>  What does the file say ?
>> C:/Ruby/lib/ruby/gems/1.8/gems/rjb-1.1.9/ext/gem_make.out
>>
>> Thanks,
>>
>> Antoine
>>
>> On Mon, Apr 5, 2010 at 08:12, kevin <[email protected]> wrote:
>>
>>
>>
>>> Hi,
>>>    I use Windows XP. Now I use Ruby 1.8.7 and define the JAVA_HOME.
>>>  Now I get now error:
>>>  C:/Ruby/bin/ruby.exe extconf.rb
>>> checking for jni.h... no
>>>
>>> *** 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=C:/Ruby/bin/ruby
>>>
>>>
>>> Gem files will remain installed in
>>> C:/Ruby/lib/ruby/gems/1.8/gems/rjb-1.1.9
>>> for
>>> inspection.
>>> Results logged to
>>> C:/Ruby/lib/ruby/gems/1.8/gems/rjb-1.1.9/ext/gem_make.out
>>>
>>> What's wrong with it?
>>>
>>> Thanks very much!
>>>
>>> best regards,
>>> Kevin Wu.
>>>
>>>
>>> Antoine Toulme wrote:
>>>
>>>
>>>
>>>> You are using Ruby 1.9. You should use Ruby 1.8.7.
>>>>
>>>> Make sure JAVA_HOME is defined as well.
>>>>
>>>>
>>>> On Mon, Apr 5, 2010 at 02:14, Waruna Ranasinghe <[email protected]>
>>>> wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> Hi
>>>>> You can use maven to build ODE-trunk instead of buildr
>>>>>
>>>>> Thanks,
>>>>> Waruna
>>>>>
>>>>> 2010/4/5 kevin <[email protected]>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I am a newcomer for ODE, and I want to do the project "Implement OSGi
>>>>>> packaging for ODE" for the GSoC2010.
>>>>>> My proposal in Apache
>>>>>> wiki[2]:http://wiki.apache.org/general/soc2010-ode784-proposal
>>>>>> My proposal in
>>>>>> GSoC[3]:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> http://socghop.appspot.com/gsoc/student_proposal/show/google/gsoc2010/kevin/t127021608169
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> When I install buildr with the help from the documents[1], I
>>>>>> encountered
>>>>>> with a problem.
>>>>>> I use Ruby Gem to install Buildr: > gem install buildr. Something is
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> wrong.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> The message is as follows:
>>>>>> D:\>gem install buildr
>>>>>> Building native extensions. This could take a while...
>>>>>> ERROR: Error installing buildr:
>>>>>> ERROR: Failed to build gem native extension.
>>>>>>
>>>>>> C:/Ruby19/bin/ruby.exe extconf.rb
>>>>>> checking for jni.h... *** 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=C:/Ruby19/bin/ruby
>>>>>> C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:364:in `try_do': The complier failed
>>>>>> to
>>>>>> generat
>>>>>> e an executable file. (RuntimeError)
>>>>>> You have to install development tools first.
>>>>>> from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:433:in `try_cpp'
>>>>>> from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:811:in `block in have_header'
>>>>>> from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:670:in `block in checking_for'
>>>>>> from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in `block (2 levels) in
>>>>>> postpo
>>>>>> ne'
>>>>>> from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in `open'
>>>>>> from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in `block in postpone'
>>>>>> from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in `open'
>>>>>> from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:272:in `postpone'
>>>>>> from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:669:in `checking_for'
>>>>>> from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:810:in `have_header'
>>>>>> from extconf.rb:50:in `create_rjb_makefile'
>>>>>> from extconf.rb:67:in `<main>'
>>>>>>
>>>>>>
>>>>>> Gem files will remain installed in
>>>>>> C:/Ruby19/lib/ruby/gems/1.9.1/gems/rjb-1.1.9
>>>>>> for inspection.
>>>>>> Results logged to
>>>>>> C:/Ruby19/lib/ruby/gems/1.9.1/gems/rjb-1.1.9/ext/gem_make.out
>>>>>>
>>>>>>
>>>>>> What's wrong?
>>>>>>
>>>>>> Thanks in advance for your help.
>>>>>>
>>>>>> [1] http://buildr.apache.org/installing.html#windows
>>>>>> [2] http://wiki.apache.org/general/soc2010-ode784-proposal
>>>>>> [3]
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> http://socghop.appspot.com/gsoc/student_proposal/show/google/gsoc2010/kevin/t127021608169
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Best Regards,
>>>>>> Kevin Wu.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>> -----------------------------------------------------
>>>>> Regards,
>>>>> Waruna Ranasinghe
>>>>> BLOG: http://warunapw.blogspot.com
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>

Reply via email to