ll test
-rwxr-xr-x 1 djc djc 5131109 Jul 26 19:06 test*
./test
-bash: ./test: No such file or directory
ldd test
not a dynamic executable
解决办法参考
http://efreedom.com/Question/2-159900/Bash-Flume-File-Directory-Flume-Works-Elsewhere
原来是64位Ubuntu连32位程序的loader都没有安装,需要安装
sudo apt-get install libc6-i386
另外,一些常用的32位库
sudo apt-get install lib32asound2 lib32z1 lib32stdc++6 lib32bz2-1.0
原来apt也有search命令,只是要通过apt-cache来搜索
apt-cache search
X86_64 的 Redhat / Centos / Scientific 下面,若要编译、运行32位程序,需要安装以下包:
yum install libgcc.i686
yum install glibc-static.i686
yum install glibc-devel.i686