注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

红烧鱼

linux & windows management

 
 
 

日志

 
 
关于我
mac

专注IT基础架构设计与运维。 欢迎给我留言,或邮件沟通zjwsk@163.com

网易考拉推荐

Linux kernel rebuid  

2014-03-03 22:37:38|  分类: Linux |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
#1. download kernel and other package source in directory /data :
ftp://ftp.redhat.com/redhat/linux/enterprise/6Server/en/os/SRPMS/asciidoc-8.4.5-4.1.el6.src.rpm
ftp://ftp.redhat.com/redhat/linux/enterprise/6Server/en/os/SRPMS/newt-0.52.11-3.el6.src.rpm
ftp://ftp.redhat.com/redhat/linux/enterprise/6Server/en/os/SRPMS/slang-2.2.1-1.el6.src.rpm
ftp://ftp.redhat.com/redhat/linux/enterprise/6Server/en/os/SRPMS/oniguruma-5.9.1-3.1.el6.src.rpm
ftp://ftp.redhat.com/redhat/linux/enterprise/6Server/en/os/SRPMS/kernel-2.6.32-220.23.1.el6.src.rpm

# create os environment
useradd mockbuild
mkdir /data/rpmbuild
ln -s /data/rpmbuild /root/rpmbuild
rpm -ivh /data/*.rpm

yum install -y redhat-rpm-config patchutils xmlto elfutils-libelf-devel elfutils-devel zlib-devel binutils-devel python-devel audit-libs-devel perl-ExtUtils-Embed bison flex hmaccalc make gcc rpm-build ftp


#2. when rebuild kernel source, will display error in below:
 
# rpmbuild --bp --target=`uname -m` SPECS/kernel.spec 
Building target platforms: x86_64
Building for target x86_64
error: Failed build dependencies:
asciidoc is needed by kernel-2.6.32-220.23.1.el6.x86_64
newt-devel is needed by kernel-2.6.32-220.23.1.el6.x86_64

#3. install asciidoc
cd /root/rpmbuild
rpmbuild --bb --target=`uname -m` SPECS/asciidoc.spec
rpm -ivh /root/rpmbuild/RPMS/noarch/asciidoc-8.4.5-4.1.el6.noarch.rpm

#4. install newt-devel. this software is needed  [1]oniguruma, and [2]slang.  so must install these two package.
#4.1 install oniguruma
yum install -y ruby
rpmbuild --bb --target=`uname -m` SPECS/oniguruma.spec
rpm -ivh /root/rpmbuild/RPMS/x86_64/oniguruma-5.9.1-3.1.el6.x86_64.rpm
rpm -ivh /root/rpmbuild/RPMS/x86_64/oniguruma-devel-5.9.1-3.1.el6.x86_64.rpm

#4.2 install slang
yum install -y libpng-devel pcre-devel
rpmbuild --bb --target=`uname -m` SPECS/slang.spec
rpm -ivh /root/rpmbuild/RPMS/x86_64/slang-devel-2.2.1-1.el6.x86_64.rpm

#4.3 install newt
yum install -y popt-devel docbook-utils
rpmbuild --bb --target=`uname -m` SPECS/newt.spec
rpm -ivh /root/rpmbuild/RPMS/x86_64/newt-devel-0.52.11-3.el6.x86_64.rpm

#5. kernel
rpmbuild -bp SPECS/kernel.spec;



  评论这张
 
阅读(714)| 评论(2)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017