arton / rjb

Ruby Java Bridge
https://www.artonx.org/collabo/backyard/?RubyJavaBridge
GNU Lesser General Public License v2.1
117 stars 34 forks source link

Fails to install on Fedora with OpenJDK #26

Closed Blue-Dog-Archolite closed 11 years ago

Blue-Dog-Archolite commented 11 years ago

rjb fails to install with --

My system can't find any references to include location in the file structure.

Am I missing a package include or is there something wrong with the gem build script?

Console

/home/thief/.rvm/rubies/ruby-1.9.3-p429/bin/ruby extconf.rb 
*** 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=/home/thief/.rvm/rubies/ruby-1.9.3-p429/bin/ruby
extconf.rb:45:in `open': No such file or directory - /usr/lib/jvm/include (Errno::ENOENT)
    from extconf.rb:45:in `<main>'

.bash_profile

export JAVA_HOME=/usr/lib/jvm
export JRE_HOME=$JAVA_HOME/jre

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JAVA_HOME/jre/lib/amd64:$JAVA_HOME/jre/lib/amd64/client

Java Info

thief:/usr/lib/jvm ruby-2.0.0-p0:: $ sudo yum install java-1.7.0-openjdk
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
 * fedora: mirror.cpsc.ucalgary.ca
 * rpmfusion-free: mirror.nexcess.net
 * rpmfusion-free-updates: mirror.nexcess.net
 * rpmfusion-nonfree: mirror.nexcess.net
 * rpmfusion-nonfree-updates: mirror.nexcess.net
 * updates: mirror.cpsc.ucalgary.ca
Package 1:java-1.7.0-openjdk-1.7.0.25-2.3.10.4.fc18.x86_64 already installed and latest version
Nothing to do
thief:/usr/lib/jvm ruby-2.0.0-p0:: $ ls -al
total 52
drwxr-xr-x.  4 root root  4096 Aug 26 14:59 .
dr-xr-xr-x. 67 root root 36864 Aug 23 14:19 ..
drwxr-xr-x.  3 root root  4096 Jul  1 10:48 java-1.7.0-openjdk-1.7.0.25.x86_64
drwxr-xr-x.  3 root root  4096 Mar  5 00:41 java-1.7.0-openjdk-1.7.0.9.x86_64
lrwxrwxrwx.  1 root root    21 Aug 26 14:54 jre -> /etc/alternatives/jre
lrwxrwxrwx.  1 root root    27 Jul  1 10:48 jre-1.7.0 -> /etc/alternatives/jre_1.7.0
lrwxrwxrwx.  1 root root    38 Jul  1 10:48 jre-1.7.0-openjdk.x86_64 -> java-1.7.0-openjdk-1.7.0.25.x86_64/jre
lrwxrwxrwx.  1 root root    29 Jul  1 10:48 jre-openjdk -> /etc/alternatives/jre_openjdk
arton commented 11 years ago

Hi, You should install java-1.7.0-openjdk-devel .

Regards.

Blue-Dog-Archolite commented 11 years ago

Yep, I am an idiot. Thanks.