# 安装一些依赖工具,configure时,如果缺少,会有提示
sudo apt install gperf bison flex makeinfo texinfo help2man gawk libtool libtool-bin automake libncurses5-dev
wget http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.22.0.tar.bz2
tar xjf crosstool-ng-VERSION.tar.bz2
cd crosstool-ng-VERSION
./configure --prefix=/some/place
make
make install
export PATH="${PATH}:/some/place/bin"
记录一下安装过程