Ubuntu安装crosstoolng步骤

Ubuntu安装crosstool-ng步骤:

注:crosstool-ng要求不能在root模式下操作

$ sudo apt-get install gawk

$ sudo apt-get install libtool

$ sudo apt-get install texinfo

$ tar jxfv crosstool-ng-1.19.0.tar.bz2

$ mkdir -p ~/cross/src

$ cd crosstool-ng-1.19.0

$ ./configure --prefix=/home/ming/cross

$ make

$ make install

$ cd ~/cross/bin

$ wget http://archlinuxarm.org/mirror/development/ct-ng/xtools-dotconfig-v5 -O .config

$ ./ct-ng build

失敗

自己下载isl-0.12.1.tar.gz、cloog-0.18.1.tar.gz、gcc-4.8.2.tar.bz2放在~/cross/src下,并把系统下的删掉并删掉.build

下载网址:

http://isl.gforge.inria.fr/isl-0.12.1.tar.gz
http://ftp.gnu.org/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.bz2
http://www.bastoul.net/cloog/pages/download/cloog-0.18.1.tar.gz

再次执行

$ ./ct-ng build即可

本文出自 “linux” 博客,谢绝转载!

Database error: [Table 'ac_search_cache' is marked as crashed and should be repaired]

SELECT * FROM ac_search_cache WHERE hash = 'eb6a0a00d53de5b0d5285ca44c0a1fa2cc5dbfd7' LIMIT 1;