I am a Linux noob trying to compile a 32 bit program and run it on 64bit Ubuntu. It compiles fine but when I run it I get this error: error while loading shared libraries: libm.so.6: cannot stat shared object: Error 38
I have searched for libm.so.6 and found it in /lib32 and /libx32. Any help is appreciated.
ldd prog
(whereprog
is replaced by the name of the compiled executable program)?gcc-multilib
package (and its dependencies) installed?