转载自:http://carywu.blog.51cto.com/13185/50957
今日在安装完mplayer后出现startx不能进入桌面的问题,出现问题提示如下:
X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.6.9-34.0.1.ELsmp i686 [ELF]
Current Operating System: Linux carywu.linux.com 2.6.9-42.EL #1 Wed Jul 12 23:16 :43 EDT 2006 i686
Build Date: 11 July 2006
Build Host: hs20-bc1-1.build.redhat.com
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.6.9-34.0.1.ELsmp i686 [ELF]
Current Operating System: Linux carywu.linux.com 2.6.9-42.EL #1 Wed Jul 12 23:16 :43 EDT 2006 i686
Build Date: 11 July 2006
Build Host: hs20-bc1-1.build.redhat.com
Before reporting problems, check
[url]http://wiki.X.Org[/url]
to make sure that you have the latest version.
Module Loader present
OS Kernel: Linux version 2.6.9-42.EL ( bhcompile@hs20-bc1-1.build.redhat.com) (gc c version 3.4.6 20060404 (Red Hat 3.4.6-2)) #1 Wed Jul 12 23:16:43 EDT 2006 P
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Nov 17 17:45:52 2007
(==) Using config file: "/etc/X11/xorg.conf"
to make sure that you have the latest version.
Module Loader present
OS Kernel: Linux version 2.6.9-42.EL ( bhcompile@hs20-bc1-1.build.redhat.com) (gc c version 3.4.6 20060404 (Red Hat 3.4.6-2)) #1 Wed Jul 12 23:16:43 EDT 2006 P
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Nov 17 17:45:52 2007
(==) Using config file: "/etc/X11/xorg.conf"
kde-config: error while loading shared libraries: libqt-mt.so.3: cannot open sha red object file: No such file or directory
xset: bad font path element (#58), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
startkde: Starting up...
ksplash: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory
kdeinit: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory
startkde: Could not start kdeinit. Check your installation.
/usr/bin/startkde: line 239: xmessage: command not found
Warning: connect() failed: : No such file or directory
ksmserver: error while loading shared libraries: libqt-mt.so.3: cannot open shar ed object file: No such file or directory
startkde: Shutting down...
Warning: connect() failed: : No such file or directory
Error: Can't contact kdeinit!
startkde: Running shutdown scripts...
startkde: Done.
xset: bad font path element (#58), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
startkde: Starting up...
ksplash: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory
kdeinit: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory
startkde: Could not start kdeinit. Check your installation.
/usr/bin/startkde: line 239: xmessage: command not found
Warning: connect() failed: : No such file or directory
ksmserver: error while loading shared libraries: libqt-mt.so.3: cannot open shar ed object file: No such file or directory
startkde: Shutting down...
Warning: connect() failed: : No such file or directory
Error: Can't contact kdeinit!
startkde: Running shutdown scripts...
startkde: Done.
经查,是因为系统没有监测到libqt-mt.so.3文件。只需要将/usr/lib/qt-3.3/lib 添加到/etc/ld.so.conf文件中去,执行下ldconfig命令即可。
以下是ANdy_baby自己添加:
虽然报的是一样的错,但是不同系统或者同意系统不同的版本
/usr/lib/qt-3.3/lib这个文件不一定存在,比如我当时的没有qt-3.3文件夹,只有qt-3.322文件夹,所以添加的时候要根据系统正确添加。
如果进不了图形用户界面,使用startx命令可以测试错误。