免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 970 | 回复: 0
打印 上一主题 下一主题

common error when using linux [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-19 23:33 |只看该作者 |倒序浏览

                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的。
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/94300/showart_2056128.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP