In trying to install Apache 2.0 Agent 2.202 for RHEL5 Linux 64bit, the dialogue appears as follows.
# export JAVAHOME=/usr/java/jdk1.6.0_24/; echo $JAVAHOME /usr/java/jdk1.6.0_24/ # ./setup Launching installer... Attach to native process failed
On the server we have the following JREs and I've tried both.
# java -version java version "1.6.0_22" OpenJDK Runtime Environment (IcedTea6 1.10.8) (rhel-126.96.36.199.8.el5_8-x86_64) OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode) $ sudo rpm -qa | egrep "(openjdk|icedtea)" java-1.6.0-openjdk-188.8.131.52-184.108.40.206.8.el5_8
And SElinux appears to be off:
# cat /etc/sysconfig/selinux SELINUX=disabled SELINUXTYPE=targeted
Update after solution was found:
I have some minor progress to report. I removed all traces of Java from our test server. As you can see below, I downloaded a mixed mode copy of Java as recommended by a few friends and colleagues. I downloaded jdk-1.6.0_31-fcs.i586.rpm from (ftp.)ScientificLinux.Org and installed it.
# rpm -qa | grep jdk jdk-1.6.0_31-fcs # java -version java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b04) Java HotSpot(TM) Server VM (build 20.6-b01, mixed mode) # echo $JAVAHOME /usr/java/jdk1.6.0_31
And, instead of saying "Failed to attach to native process," I'm now prompted with the following.
# ./setup Launching installer... You are running the Installation/Uninstallation program for the Sun Java(tm) System Access Manager Policy Agent. The Installation program consists of one or more selections that provide you with information and let you enter preferences that determine how the Sun Java (tm) System Access Manager Policy Agent is installed and configured.