Wednesday, December 3, 2014

How to run 32 bit applications on a 64bit linux machine

Got the nasty "bad ELF interpreter" error message trying to run a 32bit command line application?
You probably miss some shared library!
How to solve it?

Run a check on the missing shared libraries using the command "ldd" (print shared library dependencies)

ldd <path_to_your_32bit_application>

then install the missing libraries. For example on CentOS/RedHat

yum provides <path_to_the_missing_library>

Done!

Example:

sudo yum provides /lib/libpthread.so.0


References:

http://stackoverflow.com/questions/8328250/centos-64-bit-bad-elf-interpreter

No comments:

Post a Comment

Your comment will be visible after approval.