Tag Archives: ELF

Not able to run any command /lib64/ld-Linux-x86-64.so.2: bad ELF interpreter

By stunn3r

Hi,

I accidentally did this:

[
wadhwaso@nxsdgd01 deps]$sudo rpm -e –nodeps glibc-2.5-107.x86_64
error: %postun(glibc-2.5-107.x86_64) scriptlet failed, exit status 255

and since then I am not able to run any command on this server except ‘cd’.

I always get the following error:

[wadhwaso@nxsdgd01 ~]$ ls
-bash: /bin/ls: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory

I am not able to access this server via ssh and I cant even scp a file if I want to. i cant use ‘touch’, I cant ‘vi‘. I always get this error

I checked on another server for the file and following is the info.:

[
wadhwaso@nxsdgd05 ~]$ ls /lib64/ld-linux-x86-64.so.2
/lib64/ld-linux-x86-64.so.2
[wadhwaso@nxsdgd05 ~]$ ll /lib64/ld-linux-x86-64.so.2
lrwxrwxrwx 1 root root 9 Apr 7 2012 /lib64/ld-linux-x86-64.so.2 -> ld-2.5.so

Fortunately I also have a winscp session opened for nxsdgd01 but as I am not logged in as root I cannot transfer a file in /lib64. How this could be resolved ?

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Solaris 10 apache 64 bit libldap.so problem

By teotao

Hello,

I am fairly new to Solaris so please be gentle ;). I am trying to install apache 2.4.3 adapting a script one of my colleagues wrote for version 2.2.23. The problem lies in the fact that I am aiming at creating a 64bit package hence I’ve already amended the script to reflect that. I understand this is the way to go about it, right? However, I get an error every single time I run the script.

Code:

ld: fatal: file /usr/local/lib/libldap.so: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to ldap/.libs/apr_ldap-1.so
collect2: ld returned 1 exit status
gmake[3]: *** [ldap/apr_ldap.la] Error 1
gmake[3]: Leaving directory `/apps/pkg/src/httpd-2.4.3/srclib/apr-util'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/apps/pkg/src/httpd-2.4.3/srclib/apr-util'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/apps/pkg/src/httpd-2.4.3/srclib'
gmake: *** [all-recursive] Error 1


I understand that the file libldap.so is a 32bit file, but am clueless what to do next.

Here are my exports:

Code:

export LDFLAGS="-L/usr/sfw/lib/amd64"
export CPPFLAGS="-m64"
export LD_LIBRARY_PATH=/usr/lib:/usr/sfw/lib
export LD_LIBRARY_PATH_64=/usr/lib/64:/usr/sfw/lib/64
export CXXFLAGS="-m64 -fPIC"
export PATH=/usr/sfw/bin/:/usr/ccs/bin/sparcv9:/usr/sbin:/usr/bin:/usr/sfw/sbin:/usr/ccs/bin
export CXX="/usr/sfw/bin/gcc -m64"
export CFLAGS="-m64"
export CPP_FLAGS="-m64"
export PKG_CONFIG_PATH=/usr/lib/64/pkgconfig
export CC="gcc -m64"


Could anyone point me in the right direction, please?

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

[OT] How to get Webex working on SUSE 12.2 64bit

Sorry, for posting this on blogs.kde.org, but I think it might help a few people out there having the same problem.

So, if you want to get webex working on a 64bit Linux system, basically all you have to do is make sure that all necessary 32bit libraries are present. 64bit firefox with 64bit java are ok.
When you join a webex session, a directory ~/.webex/ is created. On my system there is a subdir 1324/ in it, and in this directory there are a bunch of 32bit ELF plugins, named *.so.
Run ldd on all of them, and check which shared libs are not found, and install them (the 32bit versions). Once I had done that, desktop and application sharing worked for me.
It seems you can ignore the missing libjawt.so, everything seems to work fine without it.

If somebody knows how to make the Whiteboard feature or video work, let me know. 🙂

Hope that helps.

Alex

Source: FULL ARTICLE at Planet KDE