Engineering/Etc
centos 64-bit 머신에서 32-bit binary 실행
부스 boos
2012. 1. 18. 19:36
728x90
# ./something
-bash: ./something: /lib/ld-linux.so.2: bad ELF interpreter: 그런 파일이나 디렉토리가 없음
# file somethingsomething: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
-> 32bit 머신에서 컴파일
# yum install glibc.i686
# ldd something
linux-gate.so.1 => (0xffffe000)
libpthread.so.0 => /home/xxx/lib/libpthread.so.0 (0x00cbf000)
libc.so.6 => /home/xxx/lib/libc.so.6 (0x00b77000)
/lib/ld-linux.so.2 (0xf77e0000)
참고 :
http://stackoverflow.com/questions/8328250/centos-64-bit-bad-elf-interpreter
참고 :
http://stackoverflow.com/questions/8328250/centos-64-bit-bad-elf-interpreter