
# yum -y install glibc-common glibc
# yum -y install glibc.i686
# yum info glibc.i686
# yum list installed | grep glib
# rpm -ql glibc.i686 | grep linux
# rpm -ql glibc | grep linux
# rpm -qf /lib/ld-linux.so.2
/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
https://stackoverflow.com/questions/14030306/lib-ld-linux-so-2-bad-elf-interpreter-no-such-file-or-directory
Linux 版本中 i386/i686/x86-64/pcc 等架构的区别
https://www.jianshu.com/writer#/notebooks/27194001/notes/47794720
Windows Linux AIX下查看CPU位数和 *** 作系统位数、rpm包名
https://desert3.iteye.com/blog/1666404
What is the difference between i686 and x86_64 packages?
https://unix.stackexchange.com/questions/158244/what-is-the-difference-between-i686-and-x86-64-packages
What is the difference between i386,i686 and x86_64?
https://superuser.com/questions/74351/what-is-the-difference-between-x86-64-and-i386
https://superuser.com/questions/238112/what-is-the-difference-between-i686-and-x86-64
What is the difference between i386, i486, i586, i686, i786?
https://myonlineusb.wordpress.com/2011/06/08/what-is-the-difference-between-i386-i486-i586-i686-i786
假设在linux上用gcc编译程序,需要用下列编译选项生成.so文件:gcc -fPIC -shared
.so 文件安装一般是在/usr/lib或者/usr/local/lib下,安装后不需要绝对路径即可使用。当然你也可以安装到工程文件夹下面,不过很少有这么做的。使用时只需要dlopen()函数打开这个库,用dlsym()函数将动态库的函数体加载进来;同样已加载的动态函数库可以用dlclose()关闭。
详细使用方法百度搜dlopen 即可。
[root@ server]# javac -version-bash: /server/jdk1.7/bin/javac: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录解决:找到系统光盘里的rpm 包,安装下面 glibc包 和nss包:(可能有一些不用也行,但还是把下面的包都装了)glib2-2.22.5-5.el6.i686.rpmglib2-2.22.5-5.el6.x86_64.rpmglib2-devel-2.22.5-5.el6.i686.rpmglib2-devel-2.22.5-5.el6.x86_64.rpmglibc-2.12-1.7.el6.i686.rpmglibc-2.12-1.7.el6.x86_64.rpmglibc-common-2.12-1.7.el6.x86_64.rpmglibc-devel-2.12-1.7.el6.i686.rpmglibc-devel-2.12-1.7.el6.x86_64.rpmglibc-headers-2.12-1.7.el6.x86_64.rpmglibc-utils-2.12-1.7.el6.x86_64.rpmglibmm24-2.22.1-1.el6.x86_64.rpmnss-softokn-freebl-3.12.7-1.1.el6.i686.rpmnss-softokn-freebl-3.12.7-1.1.el6.x86_64.rpm[root@ ld-linux.so.2]# rpm -ivh * --force --nodeps再重新测试,成功!本篇文章来源于 Linux公社网站() 原文链接:/Linux/2012-08/68889.htm欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)