第20节 编译安装ncurses
命令如下:
tar xvfz ../ncurses-5.9.tar.gz
mkdir ncurses-build
cd ncurses-build
CFLAGS+='-mstackrealign -fPIC -O3' ../ncurses-5.9/configure --prefix=/tools --with-shared --without-debug --without-ada --enable-overwrite
make 2>&1|tee out.make
make install 2>&1|tee out.install
cd ..
第21节 编译安装bash
命令如下:
tar xvfz ../bash-4.2.tar.gz
cd bash-4.2
patch -Np1 -i ../../bash-4.2-fixes-3.patch
mkdir ../build-bash
cd ../build-bash
../bash-4.2/configure --prefix=/tools --without-bash-malloc
make 2>&1|tee out.make
make install 2>&1|tee out.install
ln -vs bash /tools/bin/sh
cd ..