在Debian上安装Code::Blocks
时间:2007-04-02 来源:linxh
1. 准备工作
1) aptitide install libtool autoconf automake zip
2) 从http://www.wxwidgets.org/下载wxGTK
3) 下载Code::Blocks
svn checkout svn://svn.berlios.de/codeblocks/trunk
或下载打包后的文件
2. 编译安装wxGTK(以wxGTK-2.6.2 为例)
下载wxGTK-2.6.2.tar.gz(http://www.wxwidgets.org/)
tar zxvf wxGTK-2.6.2.tar.gz
cd wxGTK-2.6.2
./configure --enable-xrc --enable-monolithic --enable-unicode
make
make install
vi /etc/ld.so.conf
将/usr/local/lib加入后,运行ldconfig
可以通过以下操作的输出检查安装是否正确
wx-config --prefix
wx-config --libs
which wx-config
3.编译安装Code::Block
cd trunk
1)find . -type f -and -not -name "*.cpp" -and -not -name "*.h" -and -not -name "*.png" -and -not -name "*.bmp" | sed "s/.*/\"\\0\"/" | xargs dos2unix
chmod +x bootstrap
2)在aclocal.m4的末尾加上
m4_include([/usr/share/aclocal/libtool.m4])
3)export ACLOCAL_FLAGS="--acdir=`wx-config --prefix`/share/aclocal"
或
echo `wx-config --prefix`/share/aclocal >> /usr/share/aclocal/dirlist
运行aclocal更新
4)./bootstrap
./configure
make
make install
安装过程参考http://bbs.linuxsir.org/showthread.php?t=248092