+ -
当前位置:首页 → 问答吧 → 美化GNOME,出现如下错误,:(

美化GNOME,出现如下错误,:(

时间:2004-03-29

来源:互联网

按照
http://www.yesky.com/SoftChannel/723...775848_2.shtml
这篇教程来做的。做完以下步骤就出现错误了。。


2.设置字体
  (1)在/usr下建一个名为system的文件夹,然后再在里面建一个文件夹fonts,命令如下:

  #cd /usr
  #mkdir system
  #cd system
  #mkdir fonts

  (2)从Windows的fonts目录拷贝以下字体文件到/usr/system/fonts,要特别注意字体文件名的大小写,以下字体文件名都是小写:

  simsun.ttf /如果是simsun.ttc改名成simsun.ttf
  tahomabd.ttf
  tahoma.ttf
  mingliu.ttf /加入繁体字库可以使繁体字更漂亮
(3)下载fonts.dir文件,并将其保存到/usr/system/fonts下,再将fonts.dir复制一份改名为fonts.scale。

  (4)下载fonts.conf文件,并将其保存到/usr/X11R6/etc/fonts/下覆盖原文件。

  (5)编辑/etc/X11/XF86Config文件,将其中Section "Files"和Section "Module"字段中的内容修改如下:

  Section "Files"
  RgbPath "/usr/X11R6/lib/X11/rgb"
  ModulePath "/usr/X11R6/lib/modules"
  FontPath "/usr/system/fonts"
  FontPath "/usr/X11R6/lib/X11/fonts/misc/"
  FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
  FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
  FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
  FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
  EndSection

  Section "Module"
  Load "extmod"
  Load "glx"
  Load "dri"
  Load "dbe"
  Load "xtt"
  # Load "record"
  Load "xtrap"
  Load "speedo"
  # Load "type1"
  EndSection


  如果你使用的是滚轮鼠标,只需要将Section "InputDevice"字段中的内容替换为如下内容即可使鼠标滚轮生效。

  Section "InputDevice"
  Identifier "Mouse0"
  Driver "mouse"
  Option "Protocol" "auto"
  Option "Device" "/dev/sysmouse"
  Option "ZAxisMapping" "4 5"
  Option "Emulate3Buttons" "yes"
  EndSection

  (6)下载 gtkrc.zh_CN文件,并将其保存到/usr/X11R6/share/themes/Default/下覆盖原文件。

  按照上述方法美化后,你可能会发现大部分X程序的字体都显示正常,但是一些基于GTK 1.x设计的程序的字体显示不正常,其实解决的方法很简单,只需要将/usr/X11R6/share/themes/Default/gtkrc.zh_CN文件复制到前用户的家目录中,并将其命名为.gtkrc.mine即可。

  (7)现在的桌面还不具备处理中文粗斜体的能力,为此,我们必须安装补丁程序(此补丁由linuxsir论坛的哈密瓜制作,按此下载),将下载的补丁程序保存到/tmp,然后执行下列命令安装补丁。

  #tar xvfj FreebsdFontsHmg.tar.bz2
  #cd FreebsdFontsHmg
  #pkg_add -f *.*

   由于此补丁程序会自动改写/usr/X11R6/etc/fonts/fonts.conf文件中的内容,所以我们还需要重新下载fonts.conf文件并保存到/usr/X11R6/etc/fonts/目录将其覆盖。



运行startx出现下列错误信息。

(==) Log file: "/var/log/XFree86.0.log", Time: Sun Mar 28 20:22:25 2004
(==) Using config file: "/etc/X11/XF86Config"
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
/usr/libexec/ld-elf.so.1: shared object "libexpat.so.4" not found

wating for X server to shut down

怎么回事?已经重装过gettext 和 gmake了。还是不行.

不知道是不是最后一步安装FreebsdFontsHmg.tar.bz2的步骤出现问题,里面的程序好象是旧的,不能正常安装。错误信息如下:

lianjin# tar xvfj FreebsdFontsHmg.tar.bz2
FreebsdFontsHmg/
FreebsdFontsHmg/Xft-2.1.2.tbz
FreebsdFontsHmg/fontconfig-2.2.1.tbz
FreebsdFontsHmg/freetype2-2.1.4_1.tbz
lianjin# cd FreebsdFontsHmg
lianjin# pkg_add -f *.*
pkg_add: could not find package perl-5.6.1_13 (proceeding anyway)
pkg_add: warning: package 'Xft-2.1.2' requires 'pkgconfig-0.15.0', but 'pkgconfig-0.15.0_1' is installed
pkg_add: can't open dependency file '/var/db/pkg/perl-5.6.1_13/+REQUIRED_BY'!
dependency registration is incomplete
pkg_add: warning: package 'Xft-2.1.2' requires 'imake-4.3.0', but 'imake-4.3.0_2' is installed
pkg_add: warning: package 'Xft-2.1.2' requires 'freetype2-2.1.4_1', but 'freetype2-2.1.7_2' is installed
pkg_add: warning: package 'Xft-2.1.2' requires 'expat-1.95.6_1', but 'expat-1.95.7' is installed
pkg_add: warning: package 'Xft-2.1.2' requires 'fontconfig-2.2.0', but 'fontconfig-2.2.1' is installed
pkg_add: warning: package 'Xft-2.1.2' requires 'fontconfig-2.2.0', but 'fontconfig-2.2.2,1' is installed
pkg_add: warning: package 'Xft-2.1.2' requires 'XFree86-libraries-4.3.0_5', but 'XFree86-libraries-4.3.0_6' is installed
pkg_add: warning: package 'fontconfig-2.2.1' requires 'pkgconfig-0.15.0', but 'pkgconfig-0.15.0_1' is installed
pkg_add: warning: package 'fontconfig-2.2.1' requires 'freetype2-2.1.4_1', but 'freetype2-2.1.7_2' is installed
pkg_add: warning: package 'fontconfig-2.2.1' requires 'expat-1.95.6_1', but 'expat-1.95.7' is installed

作者: lianjin   发布时间: 2004-03-29

Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
##############
首先,你的这两个目录好象是不存在的。
#################
/usr/libexec/ld-elf.so.1: shared object "libexpat.so.4" not found
#####################
然后寻找libexpat.so文件,在那个位置建立软连接到libexpat.so.4
再启动startx,看看有什么错误。

作者: Eg_zm   发布时间: 2004-03-29

引用:
最初由 Eg_zm 发表
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
##############
首先,你的这两个目录好象是不存在的。
#################
/usr/libexec/ld-elf.so.1: shared object "libexpat.so.4" not found
#####################
然后寻找libexpat.so文件,在那个位置建立软连接到libexpat.so.4
再启动startx,看看有什么错误。
嗯,这个我之前有看过,确实是不存在这个目录的。

作者: lianjin   发布时间: 2004-03-29