LinuxSir.cn,穿越时空的Linuxsir!

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

安装qt后出现如下问题

[复制链接]
发表于 2003-10-4 01:30:02 | 显示全部楼层 |阅读模式
由于安装qterm时老是报错,显示说没有qt>=3.0
于是我就费了好大的尽安装了qt 3.2.1
我把qt默认安装在/usr/local/qt
装完后安装qterm,当运行qterm时,显示:
qterm: error while loading shared libraries: libqt.so.3: cannot open shared object file: No such file or directory

请问如何解决?
qt自带的install文本中有下面一段话:
In very few cases you may need to run /sbin/ldconfig or something
    similar at this point if you are using shared libraries.

    If you have problems running the example programs, e.g. messages like

         can't load library 'libqt.so.3'

    you probably need to put a reference to the qt library in a
    configuration file and run /sbin/ldconfig as root on your system.
    And don't forget to set LD_LIBRARY_PATH as explained in (2) above.

我不知如何解决,请高人指教
谢谢:help
发表于 2003-10-4 12:27:13 | 显示全部楼层
需要把你的qt共享库的目录加入到搜索路径里面去。
 楼主| 发表于 2003-10-4 13:26:36 | 显示全部楼层
请问斑竹,应该怎么加?
我刚刚涉足linux
谢谢:help
发表于 2003-10-8 09:35:36 | 显示全部楼层

to tfccheng

将Qt库的路径加到LD_LIBRARY_PATH里就可以了
vi .bashrc
加入
export LD_LIBRARY_PATH=/usr/local/qt/lib{LD_LIBRARY_PATH}
然后执行
. .bashrc
就可以了
 楼主| 发表于 2003-10-8 10:59:30 | 显示全部楼层
谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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