Skip to content

Instantly share code, notes, and snippets.

@rednaxelafx
Created November 26, 2012 13:51
Show Gist options
  • Save rednaxelafx/4148300 to your computer and use it in GitHub Desktop.
Save rednaxelafx/4148300 to your computer and use it in GitHub Desktop.
bash: ./java: No such file or directory. Caused by missing 32-bit libs on a 64-bit system. Installing ia32-libs fixes the problem. Install libc6-dev-i386 to fix gcc missing header; lib32stdc++6, g++-4.6-multilib. See also http://t.cn/zjGxUcX
kmo@ubuntu:~/sdk/jdk1.7.0_09_32/bin
$ ./java
bash: ./java: No such file or directory
kmo@ubuntu:~/sdk/jdk1.7.0_09_32/bin
$ file ./java
./java: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, BuildID[sha1]=0xb4f81805640a786538c721d745f97f3485d03e3c, not stripped
kmo@ubuntu:~/sdk/jdk1.7.0_09_32/bin
$ ldd ./java
not a dynamic executable
kmo@ubuntu:~/sdk/jdk1.7.0_09_32/bin
$ uname -a
Linux ubuntu 3.2.0-33-generic #52-Ubuntu SMP Thu Oct 18 16:29:15 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
kmo@ubuntu:~/sdk/jdk1.7.0_09_32/bin
$ sudo apt-get install ia32-libs
...
kmo@ubuntu:~/sdk/jdk1.7.0_09_32/bin
$ ./java -version
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) Server VM (build 23.5-b02, mixed mode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment