SVN下载源代码:
svn co svn://svn.berlios.de/codeblocks/trunk codeblocks
进入trunk
配置configure和依赖关系:
./bootstrap
失败,找不到wxWidgets .m4,AM_什么宏未定义,临时写入环境变量
export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"
安装wx-common
sudo apt-get install wx-common
不太明白这个值是什么意思这个包是干嘛的
重新配置
./bootstrap
编译
make
安装
make install
运行提示codeblocks: error while loading shared libraries: libcodeblocks.so.0: cannot open shared object file: No such file or directory
因为链接库文件安装到了/usr/lib下
把/usr/local/lib加到文件/etc/ld.so.conf尾
sudo ldconfig,重新配置动态链接库。
成功
最方便的还是下载二进制包。再用dpkg -i