Solve the linux Installation Software:/lib/ld-linux.so.2: bad ELF interpreter Problem

Source: Internet
Author: User

This problem is not my own encountered is a classmate asked me to install software in linux:/lib/ld-linux.so.2: bad ELF interpreter how to solve, here I have two kinds of analysis, one is commonly used installation because of the number of digits of the system software, for example, 32-bit programs are installed in 64-bit systems, and the other is that the files or directories are not cross-compiled, let's take a look at the solution.

Problem 1: 32-bit program installed in 64-bit Systems

Because 32-bit programs are installed in 64-bit Systems

Solution:

The Code is as follows: Copy code

Yum install glibc. i686

Problem 2: solve 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 file or directory
/Home/gl/usr/local/arm/4.3.2/bin/arm-linux-gcc: Row 3: /home/gl/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc: Successful
[Root @ austgl gl] # yum install ld-linux.so.2
Loaded plug-ins: langpacks, presto, refresh-packagekit
Resolve Dependencies
--> Execute transaction check
---> The software package glibc. i686.0.2.16-28. fc6 will be installed.
--> Handle dependencies libfreebl3.so (NSSRAWHASH_3.12.3), which is required by the software package glibc-2.16-28.fc18.i686
--> Handle dependency libfreebl3.so, which is required by the software package glibc-2.16-28.fc18.i686
--> Execute transaction check
---> The package nss-softokn-freebl.i686.0.3.14.3-1.fc18 will be installed
--> Complete dependency Calculation
^ [^
Dependency Solution

========================================================== ==========================================================
Package architecture version repository size
========================================================== ==========================================================
Installing:
Glibc i686 2.16-28. fc6 updates 4.2 M
Install for dependency:
Nss-softokn-freebl i686 3.14.3-1. flisted updates 146 k

Transaction Summary
========================================================== ==========================================================
Install package 1 (+ 1 Dependent package)

Total downloads: 4.3 MB
Installation size: 15 MB
Are you sure you want? [Y/N]: y
Are you sure you want? [Y/N]: y
Download the software package:
Nss-softokn-freebl-3.14.3-1.fc FAILED 105 kB/s | 301 kB 00:00:39 ETA
Http://mirrors.ispros.com.bd/fed... 3-1.fc18.i686.rpm: [Errno 14] curl #22-"The requested URL returned error: 404 Not Found"
Try to use this word as a forbidden image.
(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
Bytes ----------------------------------------------------------------------------------------------------------------
Total 104 kB/s | 4.3 MB
Run transaction check
Execute transaction Test
Transaction test successful
Execute 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

Installed:
Glibc. i686 0: 2. 16-28.fc6

Installed as dependencies:
Nss-softokn-freebl.i686 0: 3. 14.3-1. fc6

Finished!
[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 stripped
[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.