wsyy
asked on
Install java 7, tomcat, etc. on CentOS
Hi,
I would like to install Sun JDK 7, tomcat, ant, etc. on CentOS 5.5. Could anyone provide some instructions?
Thanks
I would like to install Sun JDK 7, tomcat, ant, etc. on CentOS 5.5. Could anyone provide some instructions?
Thanks
ASKER
Jay, thanks a bunch for providing so detailed info.
I wonder why I must install tomcat native.
I wonder why I must install tomcat native.
ASKER
Also,
*java-1.7.2 - your Java SDK installed path
I wonder if something is omitted here. The jdk path in my server is /opt/jdk
What should I will this "*java-1.7.2"?
*java-1.7.2 - your Java SDK installed path
I wonder if something is omitted here. The jdk path in my server is /opt/jdk
What should I will this "*java-1.7.2"?
ASKER
[root@cld01-01 native]# ./configure --with-apr=/usr/bin/apr-1- config --with-java-home=/opt/jdk1 .7.0_02
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.1.22
checking for chosen layout... tcnative
checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.
Jay, as u would see, the --with-apr parameter is incorrect. What is APR? How can I solve this?
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.1.22
checking for chosen layout... tcnative
checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.
Jay, as u would see, the --with-apr parameter is incorrect. What is APR? How can I solve this?
ASKER
Jay, please forgone the above comments. I figured out to install apr by the following command:
yum install apr-devel openssl-devel
Also, I have followed your suggestions to put the export LD_LIBRARY_PATH="/usr/loca l/apr/lib" the second line of the catalina.sh.
But I don't know why I should install the tomcat native and how to test if the native has been successfully installed.
yum install apr-devel openssl-devel
Also, I have followed your suggestions to put the export LD_LIBRARY_PATH="/usr/loca
But I don't know why I should install the tomcat native and how to test if the native has been successfully installed.
Hi,
here is the answer for your question.
Why need Tomcat Native?
http://www.liferay.com/community/wiki/-/wiki/Main/Tomcat+Native+Library
http://www.coderanch.com/t/524902/Tomcat/APR-based-Apache-Tomcat-Native
Jay
here is the answer for your question.
Why need Tomcat Native?
http://www.liferay.com/community/wiki/-/wiki/Main/Tomcat+Native+Library
http://www.coderanch.com/t/524902/Tomcat/APR-based-Apache-Tomcat-Native
Jay
ASKER
Jay,
I followed ur instructions. Now how can I test if tomcat native is there to work.
I followed ur instructions. Now how can I test if tomcat native is there to work.
wsyy,
check the difference between various connectors.(Under "Which connector?" section)
http://www.springsource.com/files/uploads/tomcat/tomcatx-performance-tuning.pdf
APR/Native is the flexible one to use. If you want to go others for specific reasons then you can proceed.
Jay
check the difference between various connectors.(Under "Which connector?" section)
http://www.springsource.com/files/uploads/tomcat/tomcatx-performance-tuning.pdf
APR/Native is the flexible one to use. If you want to go others for specific reasons then you can proceed.
Jay
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I hope following steps could help you.
Install JAVA:
Open in new window
where (version) must be a valid version of the JDK.http://openjdk.java.net/install/index.html
(OR)
Open in new window
(If your OS is 64bit)Open in new window
(If you are running on 32bit)Open in new window
Note: Read this doc to install Java.http://docs.oracle.com/javase/7/docs/webnotes/install/linux/linux-jdk.html
To Install Ant:
wget http://apache.osuosl.org//ant/binaries/apache-ant-1.8.2-bin.tar.gz
To install check this URL.
http://ant.apache.org/manual/install.html#getBinary
Install Tomcat 7.x.x:
Open in new window
You can find the version to download from the binary distribution HERE.http://tomcat.apache.org/download-70.cgi
Next you must install tomcat native by downloading the source from here:
http://tomcat.apache.org/download-native.cgi
Open in new window
Next open up the catalina.sh (where it is probably located at /usr/share/apache-tomcat-7
-Jay