看板FreeBSD
标 题Re: 请问5.4 cvsup到6.0的问题
发信站山水兰阳 (Sun Nov 13 18:57:29 2005)
转信站ptt!ctu-reader!news.nctu!ilcbbs
※ 引述《[email protected] (改变频率)》之铭言:
> error如下...不晓得有没有人知道怎麽解决
> ===> lib/libypclnt (all)
> ===> lib/libalias (all)
> make: don't know how to make /usr/src/lib/libalias/alias.c. Stop
跨 Release 的话,(比如 4.10 -> 4.11, 5.3 -> 5.4 之类)
通常是要先 make buildwolrd
编译时,从 6.0 起暂不建议指令参数加上 -jN
(比如 -j4...会死更快而已 :p)
详情还是建议直接看 /usr/src/UPDATING 解释比较清楚
To upgrade in-place from 5.x-stable or higher to 6.x-stable
-----------------------------------------------------------
<make sure you have good level 0 dumps>
make buildworld [9]
make kernel KERNCONF=YOUR_KERNEL_HERE [8]
[1]
<reboot in single user> [3]
mergemaster -p [5]
make installworld
mergemaster -i [4]
<reboot>
(略,其实很有很多要注意的细节)
另外我之前遇到的 setlocale(3) 问题...解法在下面这找到,顺便野人献曝一下
http://www.freebsd.org/releases/6.0R/errata.html
(2005/11/5) Changes of on-disk format of /usr/share/locale/*/LC_* files in
6.0-RELEASE prevent third-party software which uses setlocale(3) for its
localization from working after a 5.x system upgraded. The software includes
ones installed into the 5.x system by using FreeBSD Ports Collection and so
on. To solve this problem, perform one of the following:
* Install misc/compat5x package into the upgraded 6.0 system. This
package installs a library lib/compat/libc.so.5 which makes the
software complied in a 5.x system use the old locale files to keep
compatibility.
Note that you need to remove /lib/libc.so.5 after upgrading.
This package is available only for Tier-1 platforms.
* Recompile the software on the 6.0 system.
简单讲,
装 /usr/ports/misc/compat5x 这样会使原先已安装的 i18n 程式采用相容 5.x 模式
记得重开机後,进 single user mode 把旧的 /lib/libc.so.5 拿掉或备份
最後,为确保没有漏失,最好是重新 build/install 相关 i18n 程式 :p
比如: portupgrade -Rrf gettext intltool....
--
静中见真境,淡中识本然
--
◢◣ - ● -
◢██◣◢◣ ` Origin: 宜兰资教.山水兰阳 telnet://yilan.twbbs.org
~~ ﹌ ~﹌ ﹉ From : 220-135-110-151.HINET-IP.hinet.net