Prelink:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Oneleaf留言 | 贡献
新页面: == How to enable prelink == ---- 原文出处:http://forum.ubuntu.org.cn/viewtopic.php?p=1423 原文作者: 授权许可: 翻译人员:bluebell 校对人员: 贡献者: ...
 
第38行: 第38行:
* Open /etc/default/prelink with your favorite editor, as sudo/root.  
* Open /etc/default/prelink with your favorite editor, as sudo/root.  
* Change PRELINKING=unknown from unknown to yes.  
* Change PRELINKING=unknown from unknown to yes.  
* Adjust the other options if you know what the heck you're doing. Defaults work well.
* Adjust the other options if you know what  
* To start the first prelink (the longest one!), run sudo /etc/cron.daily/prelink
 
In the future, prelink performs a quick prelink (a less-than-1-minute procedure on most systems) daily, usually at midnight. Every 14 days, or whatever you changed it to be, a full prelink will run.
 
If you just did a major apt-get upgrade that changed systemwide libraries (i.e. libc6, glibc, major gnome/X libs, etc etc etc) and experience cryptic errors about libs, rerun step 6.  
If you just did a major apt-get upgrade that changed systemwide libraries (i.e. libc6, glibc, major gnome/X libs, etc etc etc) and experience cryptic errors about libs, rerun step 6.  


To undo prelink, change step 4 from yes to no, then rerun step 6.
To undo prelink, change step 4 from yes to no, then rerun step 6.

2008年10月14日 (二) 22:20的版本

How to enable prelink


原文出处:http://forum.ubuntu.org.cn/viewtopic.php?p=1423

原文作者:

授权许可:

翻译人员:bluebell

校对人员:

贡献者:

适用版本: 文章状态:完成


怎样启用prelink:

  • 加入ubuntu universe的apt源,具体步骤请看文档。
  • 使用 apt-get 或者 synaptic 安装 prelink。
  • 编辑/etc/default/prelink (需要 root 权限)
  • 把 PRELINKING=unknown 的 unknown 改为 yes。
  • 如果你是老手,知道自己在做什么,也可以调整其他的选项。而默认的就可行了。
  • 运行prelink,命令: sudo /etc/cron.daily/prelink

这是第一次运行,也是花时间最长的一次! 以后prelink会运行得很快,在大多机器上不超过一分钟。prelink会每天运行,一般是在午夜时间。每隔14天,或者你进行了什么变动,prelink会进行一次完全的运行。

如果你进行了一次大的系统软件库升级(像libc6, glibc, gnome,X 等等),接着遇到一些莫名其妙的关于软件库的错误,那么请重复步骤6。

如果要取消prelink,把步骤4里的 yes 改为 no,然后重复步骤6。


How to enable prelink:

  • Activate Ubuntu universe sources. The procedure is well-documented by Ubuntu.
  • use apt-get or synaptic to install prelink.
  • Open /etc/default/prelink with your favorite editor, as sudo/root.
  • Change PRELINKING=unknown from unknown to yes.
  • Adjust the other options if you know what

If you just did a major apt-get upgrade that changed systemwide libraries (i.e. libc6, glibc, major gnome/X libs, etc etc etc) and experience cryptic errors about libs, rerun step 6.

To undo prelink, change step 4 from yes to no, then rerun step 6.