Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004827 [Resin] minor always 10-27-11 11:14 10-27-11 14:26
Reporter rickHigh View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.24 Product Version
  Product Build
Summary 0004827: Build problems with Red Hat 6 (with workarounds)
Description AMI: RHEL-6.1-Starter-EBS-x86_64-7-Hourly2 (ami-31d41658)

On a clean install....

Get Resin....
# wget http://www.caucho.com/download/resin-pro-4.0.23.tar.gz [^]
# tar xvf resin-pro-4.0.23.tar.gz
# cd resin-pro-4.0.23
# ./configure --enable-64bit

configure: error: Java 1.6 required. /usr/lib/jvm/bin/java returned: ./configure: line 11263: /usr/lib/jvm/bin/java: No such file or directory

Red Hat, CentOS and Amazon store Java in a slightly different location. I think, but do not know, that our configure should look for the common Java location for Red Hat, Centos and Amazon Linux by default.

# ls /usr/lib/jvm
java-1.5.0-gcj-1.5.0.0 jre-1.5.0 jre-1.6.0-openjdk.x86_64
java-1.6.0-openjdk-1.6.0.0.x86_64 jre-1.5.0-gcj jre-gcj
jre jre-1.6.0 jre-openjdk


To get past this issue, you need to set JAVA_HOME like so.... (My recollection is that you do not have to do this Ubuntu or Debian).

# export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64

Now you will get the JNI issue.

# ./configure --enable-64bit

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

    *** Can't find JNI directory in JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
    *** JNI is expected in /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux
  
Now once you do this....

# sudo yum install java-1.6.0-openjdk-devel.x86_64
# ./configure --enable-64bit


It works.

NOTE NOTE NOTE
This is different than Amazon Linux. With Amazon Linux you have to point to the new jdk. I had to setup JAVA_HOME after this. Here I don't. Once the package was installed, it just worked.

The RPM we build needs to include java-1.6.0-openjdk-devel.x86_64.
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0005588)
rickHigh
10-27-11 11:31

To use open-ssl....

Please don't delete, this is also my notes on how to build the rpm.

# ./configure --enable-64bit --enable-ssl

......

checking if Java is 64-bit... yes
checking if /bin/cp accepts -u... yes
checking for JNI in /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux ... found
Using JVMTI for class reloading
configure: error: Can't find valid OpenSSL include in
[root@domU-12-31-39-14-66-90 resin-pro-4.0.23]#

# sudo yum install openssl-devel

This gets you past this problem.

This dependency needs to be understood in the rpm.
 

- Issue History
Date Modified Username Field Change
10-27-11 11:14 rickHigh New Issue
10-27-11 11:31 rickHigh Note Added: 0005588
10-27-11 12:01 rickHigh Summary Build problems with Red Hat 6 => Build problems with Red Hat 6 (with workarounds)
10-27-11 12:01 rickHigh Description Updated
10-27-11 14:26 ferg Assigned To  => ferg
10-27-11 14:26 ferg Status new => closed
10-27-11 14:26 ferg Resolution open => fixed
10-27-11 14:26 ferg Fixed in Version  => 4.0.24
10-27-11 14:26 ferg Description Updated


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker