LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: linuxcpp

linux下如何能使某个程序单独用旧版本的glibc库?

[复制链接]
 楼主| 发表于 2006-6-1 08:49:37 | 显示全部楼层
不能
如果能的话就不考虑这种问题了

而且没有源码
回复 支持 反对

使用道具 举报

发表于 2006-6-1 09:10:53 | 显示全部楼层
把老版本的libc.so.6考到执行程序的目录下行不?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-1 09:13:23 | 显示全部楼层
这是没加LD_PRELOAD之前


  1. id: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  2. sed: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  3. expr: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  4. /opt/cds/spb155/tools/fet/bin/fet_env.sh: line 175: [: -lt: unary operator expected
  5. /opt/cds/spb155/tools/fet/bin/projmgr.exe: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
复制代码


  1. uname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  2. grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  3. sed: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  4. uniq: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

  5. The Quartus II software is optimized for the Intel Pentium III processor
  6. and newer processors.  The required extensions were not found on:
  7. ''

  8. The Quartus II software will not function properly on this processor model.
  9. Terminating...
  10. cat: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  11. grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  12. cut: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  13. uniq: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  14. uname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  15. uname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  16. uname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  17. uname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  18. uname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  19. uname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
  20. Unknown architecture and operating system.
  21. MWARCH: Undefined variable.

复制代码


加了这个环境变量后就更不行了
当然环境变量有有libc.so.6这种老库
呵呵
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表