Ports make 问题收集
系统版本:FreeBSD 7.0-RELEASE
1.从port安装软件出现:cannot find -lgio-2.0错误
环境:glib2.14.2
解决办法:升级glib2.14.2到glib-2.16.4
port: devel/glib20
系统版本:FreeBSD 7.0-RELEASE
1.从port安装软件出现:cannot find -lgio-2.0错误
环境:glib2.14.2
解决办法:升级glib2.14.2到glib-2.16.4
port: devel/glib20
在使用FreeBSD6.3-release的时候,使用scim或者fcitx一直很头大,scim用ports安装非常顺利,可是一用起来,我几乎所有的Gnome下应用程序都轮番崩溃;而fcitx则经常出现屏幕乱码的问题,而且我又偏爱scim.倒是7.0-release出来以前,我就知道有了scim-fcitx,可是一直没有使用。到最近系统直接升级倒7.0以后开始安装。
/usr/bin/ld: cannot find -lgio-2.0
gmake: *** [libgiofam.la] Error 1
*** Error code 2
Stop in /usr/ports/devel/gio-fam-backend.
*** Error code
比较后悔当初没有多掏点米米买个好点的本本,前年国庆节买的这个海尔W66的本本现在用起来真难受。前阵子运行windows xp开一个网页都到了风扇呼呼地响的程度,于是重装了系统,发现安装原版windows xp的速度比刚买时至少慢上20分钟。
今天把FreeBSD6.2升级到7.0,在make buildworld阶段两次自动关机,经观察是cpu过热关机。只好暂停工作,等本本凉透了,再接着make buildworld,到凌晨1点半左右make buildworld 总算完全完成了。
1. 备份系统(FreeBSD6.3-release)
2. 使用FreeBSD6.2后系统自带的csup更新ports与src
#cp /usr/share/examples/cvsup/ports-supfile /root/ — update ports
#cp /usr/share/examples/cvsup/stable-supfile /root/ — update src
#vi /root/stable-supfile
<?php
$currtime=time();
$currtimestr=strftime ("%H:%M:%S ",$currtime);
echo "The time is : ".$currtimestr;
print (strftime("%A"));
?>
在PHP5中,不能和PHP4一样使用date() , time() 等时间函数正确地取得本地时间, 不同的代码在不同的OS里会产生不同的结果。解决办法,为PHP5设置统一的时区:
编辑 “php.ini”,找到以下行修改:
date.timezone = PRC //PRC代表中华人民共和国
当我使用文本编辑器“Notepad++”时, 我发现一个“以UTF-8无BOM格式编码”的方式,如果Web页面的源文件以 UTF-8 格式编码的话,在校验 xhtml文件时会出来一条如下警告:
Byte-Order Mark found in UTF-8 File.
The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported.
意思是说使用utf-8的格式编码会在一些编辑器和老的浏览器上产生问题,最好是考虑避免这些问题,除非它们得到更好的支持。在这里我得到了更多的信息 http://unicode.org :