昨天终于把系统从Sarge升级到Etch了,改变有点大,有点不适应。第一感觉就是漂亮,接下来就是不适应,apt-setup命令没了,apt-update和base-config之类也没了,xserver-xfree86也并入xserver-xorg了。firefox也用不起来来,到网上查了一下,原来是Debian为了它的精神理念,发行版中不再含有公司注册商标的firefox,并且重新从源代码编译并更名为Iceweasel。这倒也是,世上最“纯正”的Linux就是Debian了。虽然有人说多一个选者没什么不好的,但是我觉得这又何必,是好是坏还未知,说不定这又是一个混乱的开始,开源社区和自由软件社区本身的规则上就有冲突,从法律的角度上看,这还是不可容忍的。当然,为了理念这没错,不然Debian也未必能这么吸引用户,拥有这么多支持者,至少本人冲着这个“纯”字,就喜欢Debian。当然还有Debian是Ian Murdock和其妻子名字合并而成的原因,觉得这很美好。顺便贴一下GUN的Free as in Freedom哲学:
The freedom to run the program, for any purpose (freedom 0).
The freedom to study how the program works, and adapt it to your needs (freedom 1). Access to the source code is a precondition for this.
The freedom to redistribute copies so you can help your neighbor (freedom 2).
The freedom to improve the program, and release your improvements to the public, so that the whole community benefits (freedom 3). Access to the source code is a precondition for this.
剩下的工作就是生成CODE::BLOCKS的configure文件、运行它并编译安装了。好像CODE::BLOCKS要求GCC至少4.1.1,Etch上是4.1.2,所以这自然不是问题。运行CODE::BLOCKS目录下的bootstrap,如果有这样warning: macro `AM_OPTIONS_WXCONFIG' not found in library警告产生(反正我有),可以以这种方式设置环境变量“ACLOCAL_FLAGS”来修正:export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"。一劳永逸的方法是运行命令:echo `wx-config --prefix`/share/aclocal >> /usr/share/aclocal/dirlist。接着和wxWidgets类似,执行configure、make、make install就行了。configure过程中,碰到缺少的工具、库之类,根据提示安装上就行了,呵呵。