Solutions for Ld-linux.so.2
( An error occurred while using the
BASH:/usr/local/bin/rar:/lib/ld-linux.so.2:bad ELF interpreter:no such file or directory
is because a 32-bit program is installed in a 64-bit system
Workaround:
Yum Install glibc.i686
After reinstallation, there are the following class errors before continuing with the installation package
Error while loading shared Libraries:libstdc++.so.6:cannot open Shared object file:no such file or directory
Yum Install libstdc++.so.6
========================================================================
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:
Code to copy code as follows
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 (www.111cn.net) 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]#
From:http://www.111cn.net/sys/linux/55374.htm
Solutions for Ld-linux.so.2