执行如下命令:
1 svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/trunk
6 sudo apt-get install build-essential
9 sudo apt-get install gdb
10 sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers wx-common -y
11 sudo update-alternatives --config wx-config
12 sudo apt-get install libgtk2.0-dev
13 sudo apt-get install libtool
进入CodeBlocks源代码目录:
15 ./bootstrap
16 ./configure
遇到如下问题:
jelly@jelly-desktop:~/Programming/tools/CodeBlocks/svn/trunk$ ./bootstrap
./update_revision.sh: 50: dch: not found
libtoolize: putting auxiliary files in `.''.
libtoolize: copying file `./ltmain.sh''
libtoolize: You should add the contents of the following files to `aclocal.m4'':
libtoolize: `/usr/share/aclocal/libtool.m4''
libtoolize: `/usr/share/aclocal/ltoptions.m4''
libtoolize: `/usr/share/aclocal/ltversion.m4''
libtoolize: `/usr/share/aclocal/ltsugar.m4''
libtoolize: `/usr/share/aclocal/lt~obsolete.m4''
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])'' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4'' to ACLOCAL_AMFLAGS in Makefile.am.
./bootstrap: 67: aclocal: not found
jelly@jelly-desktop:~/Programming/tools/CodeBlocks/svn/trunk$
jelly@jelly-desktop:~/Programming/tools/CodeBlocks/svn/trunk$ ./configure
bash: ./configure: 没有那个文件或目录
解决办法:
这是没有安装autoconf导致的.
运行下面命令安装autoconf:
sudo apt-get install autoconf
然后再执行:
./bootstrap
./configure
make && sudo make install
编译时间较长,喝杯茶慢慢等一下就安装成功咯.
|