今日在安装完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
        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 ( [email]bhcompile@hs20-bc1-1.build.redhat.com[/email]) (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.
经查,是因为系统没有监测到libqt-mt.so.3文件。只需要将/usr/lib/qt-3.3/lib 添加到/etc/ld.so.conf文件中去,执行下ldconfig命令即可。