/lib/ld-linux.so.2:bad ELF interpreter:no such file or directory error:

Source: Internet
Author: User
Tags apache tomcat

In the installation of the Tomcat times wrong:

/lib/ld-linux.so.2:bad ELF interpreter:no such file or directory


Native Environment:

[Email protected] bin]# uname-a
Linux ay140518225150152f97z 2.6.32-358.6.2.el6.x86_64 #1 SMP Thu * * 20:59:36 UTC-x86_64 x86_64 x86_64 Gnu/linux

[Email protected] bin]# cat/etc/redhat-release
CentOS Release 6.5 (Final)


Bing a bit. (Google hasn't been able to access it.) Why ) Workaround:

is due to a 32-bit program installed in a 64-bit system
Workaround:
Yum Install glibc.i686

Then installed the following: glibc.i686, found that there was an error: No package match!

Find n multi-scheme, did not solve this problem, accidentally noticed:

/usr/local/tomcat/bin/catalina.sh: /usr/local/jdk1.8.0_05/bin/java: /lib/ld-linux.so.2:bad ELF Interpreter:no such file or directory

Do you think the JDK version number is incorrect? Checked the next jdk:jdk-8u5-linux-i586.tar.gz.

Sure enough, the JDK is 32-bit, the red part of the above saw several times did not think it was the JDK problem, delayed for several days.

jdk-8u5-linux-x64.tar.gz, New Installation.

Tar-zvxf/home/sk/tools/jdk-8u5-linux-x64.tar.gz


Re-execution:./usr/local/tomcat/bin/configtest.sh



After the new 64-bit JDK is installed:
[Email protected] bin]#./configtest.sh
Using catalina_base:/usr/local/tomcat
Using Catalina_home:/usr/local/tomcat
Using Catalina_tmpdir:/usr/local/tomcat/temp
Using Jre_home:/usr/local/jdk1.8.0_05
Using CLASSPATH:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
June, 3:47:55 PM org.apache.catalina.core.AprLifecycleListener Init
Info:the APR based Apache Tomcat Native Library which allows optimal performance in production environments is not found On the Java.library.path:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
June, 3:47:55 PM org.apache.coyote.AbstractProtocol Init
Info:initializing Protocolhandler ["http-nio-8080"]
June, 3:47:56 PM Org.apache.tomcat.util.net.NioSelectorPool getsharedselector
Info:using a shared selector for servlet Write/read
June, 3:47:56 PM org.apache.coyote.AbstractProtocol Init
Info:initializing Protocolhandler ["ajp-nio-8009"]
June, 3:47:56 PM Org.apache.tomcat.util.net.NioSelectorPool getsharedselector
Info:using a shared selector for servlet Write/read
June, 3:47:56 PM Org.apache.catalina.startup.Catalina load
Info:initialization processed in 1646 MS

--------------------------------------------------------------------------------------------------------------- -----------------

JDK 32-bit error:
[email protected] bin]#./configtest.sh
Using catalina_base:/usr/local/tomcat
Using catalina_home:/usr/local/tomcat
Using catalina_tmpdir:/usr/local/tomcat/temp
Using jre_home:/usr/local/jdk1.8.0_05
Using CLASSPATH:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
/usr/local/tomcat/bin/catalina.sh:/usr/local/jdk1.8.0_05/bin/java:/lib/ld-linux.so.2:bad ELF Interpreter:no Such file or directory

/lib/ld-linux.so.2:bad ELF interpreter:no such file or directory error:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.