LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 638|回复: 0

求助:我在Mandrake 10.1下安的ns2 却运行不了

[复制链接]
发表于 2005-6-26 03:15:33 | 显示全部楼层 |阅读模式
是installing new shared libraries  的问题:

Things built OK but don't run because of missing shared libraries "libotcl.so can not open shared object file: No such file or directory".

Solution: Many systems require that you do something special when installing new shared libraries. Shared-library loading is system-dependent, so consult the man page for ld(1) on your system. On many systems the program ``ldd'' can be used to diagnose shared-libary problems.

A couple of hints: many systems require that you set the environment LD_LIBRARY_PATH to specify where to look for shared libraries. So if (let's say), you get the above error with otcl shared library (libotcl.so), you should append the path to your libotcl.so (which typically would be in the directory you have installed and built otcl) to the LD_LIBRARY_PATH macro in your .cshrc file. Other systems require that you run ldconfig when using new libraries.

我用了他提示的append the path to your libotcl.so (which typically would be in the directory you have installed and built otcl) to the LD_LIBRARY_PATH macro in your .cshrc file. 方法不行,还是报同样的错,那位大侠知道怎么用ldd和ldconfig ,请指点小弟!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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