Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
4827 | minor | always | 10-27-11 11:14 | 10-27-11 14:26 | |
|
|||||
Reporter: | rickHigh | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | |||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.24 | ||
|
|||||
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: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|