linux使用---19.redhat9使用

880阅读 0评论2016-10-17 wangcong02345
分类:LINUX

1. 虚拟机配置成  
a. 网卡--> Brigded Adapter 模式, 这样主机ssh才可以连接
b. 命令行显示全路径
export PS1="\u@\h:\w\$ "

2. redhat 9 源码编译glibc-2.3.2
a. 源码在rpm.src中 -->从源码包shrike-SRPMS-disc中解压出glibc的源码glibc-2.3.2-11.9.src.rpm
b. rpm解压源码包
  1. cong@localhost:/work/os/rootfs/test$ sudo rpm -i ./glibc-2.3.2-11.9.src.rpm   -->生成specs脚本

  2. cong@localhost:/work/os/rootfs/test$ cd /usr/src/redhat/SPECS/       -->specs脚本在这个目录下
  3. cong@localhost:/usr/src/redhat/SPECS$ ls
  4. glibc-9.spec
  5. cong@localhost:/usr/src/redhat/SPECS$ sudo rpmbuid -bp ./glibc-9.spec      -->现在就可以解压了
  6. cong@localhost:/usr/src/redhat/SPECS$ ls /usr/src/redhat/BUILD/            -->解压完成后就可以编译了
  7. glibc-2.3.2-20030313
c. 编译glibc-2.3.2
  1. cong@localhost:/usr/src/redhat/BUILD$ mkdir glibc-build/
  2. cong@localhost:/usr/src/redhat/BUILD/glibc-build$ sudo ../configure --prefix=./install --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin


  3. http://man.chinaunix.net/linux/lfs/htmlbook/chapter05/glibc.html







上一篇:linux0.12--14.可执行文件的加载过程
下一篇:linux2.4.18---1.编译