Mantis - Resin
Viewing Issue Advanced Details
5045 minor always 04-25-12 15:59 06-11-12 14:29
rickHigh  
ferg  
normal  
closed  
fixed  
none    
none 4.0.28  
0005045: ./configure; make; make install not working on CentOS
CentOS puts the jni.h here:


$ rpm -ql java-1.6.0-openjdk-devel | grep jni/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/jni.h
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux/jni_md.h
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/tapset/hotspot_jni.stp
/usr/share/systemtap/tapset/x86_64/hotspot_jni.stp


./configure expects this

checking if /bin/cp accepts -u... yes
PRO: . resin
configure: error:

    *** Can't find JNI directory in JAVA_HOME=/usr/lib/jvm/jre
    *** JNI is expected in /usr/lib/jvm/jre/include/linux

The fix is doing this:

sudo ln -s /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/ /usr/lib/jvm/jre/include

After that is seems to work...
Resin Configuration summary:

  RESIN_HOME : /usr/local/share/resin-4.0.s120425
      root : /var/www
      conf : /etc/resin
      log : /var/log/resin
      plugins : common resin_os resinssl resin
      init : /etc/init.d/resin
  JAVA_HOME: /usr/lib/jvm/jre

    + 64-bit JNI in -I/usr/lib/jvm/jre/include -I/usr/lib/jvm/jre/include/linux
    + JNI CFLAGS:
    + epoll() for keepalives
    + not using OpenSSL

There are no notes attached to this issue.