Chinaunix首页 | 论坛 | 博客
  • 博客访问: 68162
  • 博文数量: 36
  • 博客积分: 2510
  • 博客等级: 少校
  • 技术积分: 410
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-04 12:39
文章分类

全部博文(36)

文章存档

2010年(1)

2009年(35)

我的朋友
最近访客

分类: LINUX

2009-09-19 23:33:56

i want to upgrade my evolution client, but i find that is not an easy thing, in my upgrade process, i encounter many errors:

1. type less in terminal,
  WARNING: terminal is not fully functional    or
  HOME and END key were not available.

  it means some of your config file has error. you can delete existing user and recreate new user, maybe everything is ok.

2. most time, you should use yum rather than self-compilation, 恰好今天登录CU主页看到了这个,省了我写了
http://blog.chinaunix.net/u/3253/showart.php?id=2053430

一般情况下,过程是
yum search 要安装的包的大概名字,然后从结果中选择一个合适的
yum install package-name
还有一个就是yum groupinstall ,比如你的gnome桌面坏了,这时候你可以首先
yum groupremove "GNOME Desktop Environment"
然后
yum groupinstall "GNOME Desktop Environment"
一般情况下,尽量使用yum,这样以后要查询软件信息也方便,如果是自己手动安装的,那么使用yum list也许查询不到,这样导致的一个问题就是,两个不同版本的lib也许都被安装进来了,某天你不小心改了lib文件的搜索顺序,就会引起各种奇怪的错误。

3. 今天折腾了一天,其中很大一部分时间是花在pango这个东西上的,这是个什么呢?看看官方解释

Pango is a library for laying out and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that text layout is needed, though most of the work on Pango so far has been done in the context of the GTK+ widget toolkit. Pango forms the core of text and font handling for GTK+-2.x.

Pango is designed to be modular; the core Pango layout engine can be used with different font backends. There are three basic backends, with multiple options for rendering with each.

  • Client side fonts using the FreeType and fontconfig libraries. Rendering can be with with Cairo or Xft libraries, or directly to an in-memory buffer with no additional libraries.

  • Native fonts on Microsoft Windows using Uniscribe for complex-text handling. Rendering can be done via Cairo or directly using the native Win32 API.
  • Native fonts on MacOS X using ATSUI for complex-text handling, rendering via Cairo
非常重要啊,只要使用gnome桌面,这个就是最基本的组件。
在安装这个东西的时候,会提示你安装cairo这个东西,他们两个需要结合才能有所作为。其实很简单,pango是做rending的,而cairo是具体的字库管理的,一个管内容(cairo),一个管显示(pango)。
在编译这两个包的时候,最好指定 ./configure --prefix=/usr/,能很大程度上避免一个系统上安装了不同版本的多个类似包,从而到最后搞得你头大。
在编译pango的时候,要指定PKG_CONFIGU_PATH=指向cairo.pc的目录,这样最终pango和cairo才能生成一个共同的交过pangocairo的库,这对安装GTK是非常重要的。这样设置,export PKG_CONFIG_PATH=指向cairo.pc的目录,如果你在cairo configure的时候按照上面说的做,应该在/usr/lib/pkgconfig/就行了。注意,也许你的系统默认没有安装pkgconfig,你可以使用yum install ...

任何时候,除非系统完全损坏,否则一定不要重装,要解决问题,才会有进步。只要你的kernel在run,那么就别给自己重装的理由,解决问题,总结问题=才是ok的。


阅读(470) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~