Chinaunix首页 | 论坛 | 博客
  • 博客访问: 837252
  • 博文数量: 90
  • 博客积分: 766
  • 博客等级: 军士长
  • 技术积分: 1867
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-18 08:42
个人简介

linux

文章分类

全部博文(90)

文章存档

2021年(2)

2020年(2)

2017年(1)

2015年(11)

2014年(1)

2013年(53)

2012年(16)

2011年(4)

分类: 系统运维

2013-04-24 22:08:13

        安装m4:

点击(此处)折叠或打开

  1. ./configure
  2. make
  3. make install
        安装bison:

点击(此处)折叠或打开

  1. ./configure --prefix=/usr
  2. 国际化支持:
  3.          echo '#define YYENABLE_NLS 1' >> lib/config.h

  4. make
  5. make check
  6. make install

        安装procps:

点击(此处)折叠或打开

  1. patch -Np1 -i ../procps-3.2.8-watch_unicode-1.patch
  2. make
  3. make install
       安装grep:

点击(此处)折叠或打开

  1. 修正部分错误,也许这些错误并不重要:
  2. patch -Np1 -i ../grep-2.5.4-debian_fixes-1.patch

  3. 配置编译安装:
  4. ./configure --prefix=/usr --bindir=/bin --without-included-regex
  5. make
  6. make check || ture
  7. make install

        安装readline:

点击(此处)折叠或打开

  1. 准备工作:
  2. sed -i '/MV.*old/d' Makefile.in
  3. sed -i '/{OLDSUFF}/c:' support/shlib-install

  4. sed -i -e 's/0x0600/0x0601/' \
  5.        -e 's/6\.0/6.1/' \
  6.        -e 's/RL_VERSION_MINOR\t0/RL_VERSION_MINOR\t1/' readline.h

  7. 配置编译安装:
  8. ./configure --prefix=/usr --libdir=/lib
  9. make SHLIB_LIBS=-lncurses
  10. make install

  11. 移动库到更为标准的地方:
  12. mv -v /lib/lib{readline,history}.a /usr/lib
  13. rm -v /lib/lib{readline,history}.so
  14. ln -sfv ../../lib/libreadline.so.6 /usr/lib/libreadline.so
  15. ln -sfv ../../lib/libhistory.so.6 /usr/lib/libhistory.so

  16. 安装文档:
  17. mkdir -v /usr/share/doc/readline-6.1
  18. install -v -m644 doc/*.{ps,pdf,html,dvi} \
  19.                  /usr/share/doc/readline-6.1

        做到这里,隐约有一种感觉,这些细节并不是重点,这些细节会随着版本的变化而变化,了解这些细节对整个linux系统的原理并没有太大帮助,所以在下一遍安装的时候,需要注意这个问题。

       安装bash:

点击(此处)折叠或打开

  1. 配置编译安装:
  2. ./configure --prefix=/usr --bindir=/bin \
  3.     --htmldir=/usr/share/doc/bash-4.1 --without-bash-malloc \
  4.     --with-installed-readline
  5. make
  6. make install
  7. 运行刚安装的bash
  1.     exec /bin/bash --login +h




阅读(2874) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~