tar xvf /lfs-sources/bash-3.2.tar.gz
cd bash-3.2
patch -Np1 -i /lfs-sources/bash-3.2-fixes-5.patch
./configure --prefix=/tools --without-bash-malloc
make
make install
./bash
执行是报出 libncurses.so.5 cannot open shared object file
ldd ./bash
输出如下
linux-gate.so.1=>(XXX)
libncurses.so.5=>not found
libdl.so.2=>/lib/libdl.so.2(XXX)
libc.so.6=>/lib/libc.so.6
/lib/ld-linux.so.2