Troubleshooting Linux installation software:/lib/ld-linux.so.2:bad ELF interpreter problem

Source: Internet
Author: User

Problem one, 32-bit program solutions installed in 64-bit systems

is because 32-bit programs are installed in a 64-bit system

Workaround:

The code is as follows Copy Code

Yum Install glibc.i686

Problem two, resolving the cross compilation environment error


# 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 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
[ROOT@AUSTGL gl]# Yum Install ld-linux.so.2
Loaded plugins: LangPacks, Presto, Refresh-packagekit
Resolve Dependencies
--> Perform transaction checking
---> Package glibc.i686.0.2.16-28.fc18 will be installed
--> handles Dependency libfreebl3.so (nssrawhash_3.12.3), which is required by the package glibc-2.16-28.fc18.i686
--> handles dependency libfreebl3.so, which is glibc-2.16-28.fc18.i686 required by the package
--> Perform transaction checking
---> 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
================================================================================
Installation in progress:
glibc i686 2.16-28.fc18 Updates 4.2 M
Install for dependencies:
NSS-SOFTOKN-FREEBL i686 3.14.3-1.fc18 updates 146 k

Transaction overview
================================================================================
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 Packages:
NSS-SOFTOKN-FREEBL-3.14.3-1.FC FAILED kb/s | K 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"
Try the word is a prohibited mirror.
(1/2): 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 KB/S | 4.3 MB 00:42
Run transaction Check
Performing a transaction test
Transaction Test succeeded
Performing a transaction
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

Already installed:
glibc.i686 0:2.16-28.fc18

be installed as dependencies:
nss-softokn-freebl.i686 0:3.14.3-1.fc18

Complete!
[ROOT@AUSTGL gl]# ARM-LINUX-GCC hello.c-o tt
hello.c:in function ' main ':
Hello.c:3: Warning:return type of ' main ' is not ' int '
[ROOT@AUSTGL 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
[ROOT@AUSTGL gl]#

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.