安装m4:
-
./configure
-
make
-
make install
安装bison:
-
./configure --prefix=/usr
-
国际化支持:
-
echo '#define YYENABLE_NLS 1' >> lib/config.h
-
-
make
-
make check
-
make install
安装procps:
-
patch -Np1 -i ../procps-3.2.8-watch_unicode-1.patch
-
make
-
make install
安装grep:
-
修正部分错误,也许这些错误并不重要:
-
patch -Np1 -i ../grep-2.5.4-debian_fixes-1.patch
-
-
配置编译安装:
-
./configure --prefix=/usr --bindir=/bin --without-included-regex
-
make
-
make check || ture
-
make install
安装readline:
-
准备工作:
-
sed -i '/MV.*old/d' Makefile.in
-
sed -i '/{OLDSUFF}/c:' support/shlib-install
-
-
sed -i -e 's/0x0600/0x0601/' \
-
-e 's/6\.0/6.1/' \
-
-e 's/RL_VERSION_MINOR\t0/RL_VERSION_MINOR\t1/' readline.h
-
-
配置编译安装:
-
./configure --prefix=/usr --libdir=/lib
-
make SHLIB_LIBS=-lncurses
-
make install
-
-
移动库到更为标准的地方:
-
mv -v /lib/lib{readline,history}.a /usr/lib
-
rm -v /lib/lib{readline,history}.so
-
ln -sfv ../../lib/libreadline.so.6 /usr/lib/libreadline.so
-
ln -sfv ../../lib/libhistory.so.6 /usr/lib/libhistory.so
-
-
安装文档:
-
mkdir -v /usr/share/doc/readline-6.1
-
install -v -m644 doc/*.{ps,pdf,html,dvi} \
-
/usr/share/doc/readline-6.1
做到这里,隐约有一种感觉,这些细节并不是重点,这些细节会随着版本的变化而变化,了解这些细节对整个linux系统的原理并没有太大帮助,所以在下一遍安装的时候,需要注意这个问题。
安装bash:
-
配置编译安装:
-
./configure --prefix=/usr --bindir=/bin \
-
--htmldir=/usr/share/doc/bash-4.1 --without-bash-malloc \
-
--with-installed-readline
-
make
-
make install
-
运行刚安装的bash
-
exec /bin/bash --login +h
阅读(2929) | 评论(0) | 转发(0) |