Linux 64 System installed 32-bit JDK solution

Source: Internet
Author: User

I installed the software in the Linux system:/lib/ld-linux.so.2:bad ELF interpreter How to solve, here I analyze there are two, one is commonly used installation because of the system software bit problems, such as: 64-bit system installed 32-bit programs, The other is that cross-compiling does not have that file or directory, so let's look at how to solve the problem.

Problem one, 32-bit program resolution is installed on 64-bit systems

is because a 32-bit program is installed in a 64-bit system

Workaround:

The code is as follows Copy Code

Yum Install glibc.i686

Issue two, troubleshooting cross-compilation environment errors


# ARM-LINUX-GCC Hello.c-o TT
/HOME/GL/USR/LOCAL/ARM/4.3.2/BIN/ARM-LINUX-GCC:/HOME/GL/USR/LOCAL/ARM/4.3.2/BIN/ARM-NONE-LINUX-GNUEABI-GCC:/ Lib/ld-linux.so.2:bad ELF Interpreter: No that file or directory
/HOME/GL/USR/LOCAL/ARM/4.3.2/BIN/ARM-LINUX-GCC: Line 3:/HOME/GL/USR/LOCAL/ARM/4.3.2/BIN/ARM-NONE-LINUX-GNUEABI-GCC: Success
[email protected] gl]# Yum install ld-linux.so.2
Loaded plugins: LangPacks, Presto, Refresh-packagekit
Resolving dependencies
--Perform a transaction check
---> Package glibc.i686.0.2.16-28.fc18 will be installed
--Process Dependency libfreebl3.so (nssrawhash_3.12.3), which is required by the package glibc-2.16-28.fc18.i686
--Process dependency libfreebl3.so, which is required by package glibc-2.16-28.fc18.i686
--Perform a transaction check
---> Package nss-softokn-freebl.i686.0.3.14.3-1.fc18 will be installed
Complete dependency Calculation
^[^a
Dependency resolution

================================================================================
Package schema version Warehouse size
================================================================================
Installing:
glibc i686 2.16-28.fc18 Updates 4.2 M
To install for dependency:
NSS-SOFTOKN-FREEBL i686 3.14.3-1.fc18 updates 146 k

Transaction summary
================================================================================
Install 1 Packages (+1 Dependent package)

Total downloads: 4.3 M
Installation Size: + M
Are you sure? [Y/n]:y
Are you sure? [Y/n]:y
Download the package:
NSS-SOFTOKN-FREEBL-3.14.3-1.FC FAILED kb/s | 301 KB 00:00:39 ETA
Http://mirrors.ispros.com.bd/fed .... 3-1.FC18.I686.RPM: [Errno] Curl#22-"The requested URL returned error:404 not Found"
Attempting the word is a forbidden mirror.
(a): glibc-2.16-28.fc18.i686.rpm | 4.2 MB 00:00:14
(2/2): nss-softokn-freebl-3.14.3-1.fc18.i686.rpm | 146 KB 00:00:35
--------------------------------------------------------------------------------------------------------------- -
Total 104 kb/s | 4.3 MB 00:42
Run a transaction check
Performing a transaction test
Transaction Test succeeded
Execution transactions
Installing: nss-softokn-freebl-3.14.3-1.fc18.i686 1/2
Installing: glibc-2.16-28.fc18.i686 2/2
verifying:glibc-2.16-28.fc18.i686 1/2
verifying:nss-softokn-freebl-3.14.3-1.fc18.i686 2/2

has been installed:
glibc.i686 0:2.16-28.fc18

To be installed as a dependency:
nss-softokn-freebl.i686 0:3.14.3-1.fc18

Complete!
[Email protected] gl]# ARM-LINUX-GCC hello.c-o TT
hello.c:in function ' main ':
Hello.c:3: Warning:return type of ' main ' is not ' int '
[[Email protected] gl]# file TT
Tt:elf 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for Gnu/linux 2.6.14, not str ipped
[Email protected] gl]#

Linux 64 System installed 32-bit JDK solution

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.