1. Install JDK
Http://java.sun.com
(1) The downloaded binfile can be directly executed.
# Chmod 755 jdk-1.6.0_23-linux-i586.rpm.bin
#./Jdk-1.6.0_23-linux-i586.rpm.bin
After this step is complete, a file for the jdk-1.6.0_23-linux-i586.rpm is generated
Installed in/usr/java/jdk1.6.0 _ 23 by default
(2) Set environment variables in/etc/profile
Add the following content:
JAVA_HOME =/usr/java/jdk1.6.0 _ 23
JRE_HOME =/usr/java/jdk1.6.0 _ 23/jre
PATH = $ PATH: $ JAVA_HOME/bin: JRE_HOME/bin
CLASSPATH =.: $ JAVA_HOME/lib/jt. jar: $ JAVA_HOME/lib/tools. jar: $ JRE_HOME/lib
Export JAVA_HOME JRE_HOME PATH CLASSPATH
Press Esc, And then: wq save and exit
Make environment variables take effectSource/etc/profile
View: echo $ JAVA_HOME (the JDK directory is displayed)
**************************************** **************************************** ***************************
2. Check the installation package
Make-3.79.1
Gcc-3.2.3-34
Glibc-2.3.2-95.20
Glibc-devel-2.5-12.i386.rpm
Glibc-headers-2.5-12.i386.rpm
Compat-db-4.0.14-5
Compat-gcc-7.3-2.96.128
Compat-gcc-c ++-7.3-2.96.128 compat-libstdc ++-7.3-2.96.128
Compat-libstdc ++ devel-7.3-2.96.128
LibXpm-3.5.5-3.i386.rpm (libXp)
Openmotif21-2.1.30-8 setarch-1.3-1
Libgomp-4.1.1-52.el5.i386.rpm
Check whether the required installation package is complete.
Rpm-q gcc make binutils openmotif setarch compat-db compat-gcc-c ++ compat-libstdc ++-devel libXp
Because there is a strict dependency between the missing packages, you must install the missing packages in the following order.
Compat-db-4 rpm-Uvh *
Libaio-0 rpm-Uvh *
Rpm-Uvh compat-libstdc ++-33-3 *
Rpm-Uvh glibc-headers-2.5-12.i386.rpm
Rpm-Uvh glibc-devel-2.5-12.i386.rpm
Compat-gcc-34-3 rpm-Uvh *
Rpm-Uvh compat-gcc-34-c ++-3 *
LibXp-1 rpm-Uvh *
Openmotif-2 rpm-Uvh *
Gcc-4 rpm-Uvh *
Rpm-Uvh glibc-2.5-12.i686.rpm
Rpm-Uvh libgomp-4.1.1-52.el5.i386.rpm
Rpm-Uvh gcc-4.1.1-52.el5.i386.rpm
After the installation is complete, the system still prompts that some packages are not installed, but the usage is not affected.
Package compat-gcc is not installed
Package compat-gcc-c ++ is not installed
Package compat-libstdc ++ is not installed
Package compat-libstdc ++-devel is not installed
Another statement:
Check whether the required installation package is complete.
Rpm-q gcc make binutils openmotif setarch libXp
For the packages to be installed, search for and install compat-> libXp-> openmotif by the following keywords (I did this)
**************************************** **************************************** ***************************