rhel5.8 x64
創(chuàng)新互聯(lián)公司是一家集成都網(wǎng)站設(shè)計(jì)、成都網(wǎng)站建設(shè)、網(wǎng)站頁面設(shè)計(jì)、網(wǎng)站優(yōu)化SEO優(yōu)化為一體的專業(yè)網(wǎng)絡(luò)公司,已為成都等多地近百家企業(yè)提供網(wǎng)站建設(shè)服務(wù)。追求良好的瀏覽體驗(yàn),以探求精品塑造與理念升華,設(shè)計(jì)最適合用戶的網(wǎng)站頁面。 合作只是第一步,服務(wù)才是根本,我們始終堅(jiān)持講誠(chéng)信,負(fù)責(zé)任的原則,為您進(jìn)行細(xì)心、貼心、認(rèn)真的服務(wù),與眾多客戶在蓬勃發(fā)展的市場(chǎng)環(huán)境中,互促共生。
# yum install gcc rpm-build pcre-devel
# pwd
/usr/src/redhat
# ls
BUILD RPMS SOURCES SPECS SRPMS
# tar jxvf nagios-cn-3.2.3.tar.bz2
# tar czvf nagios-cn-3.2.3.tar.gz nagios-cn-3.2.3
# cp nagios-cn-3.2.3.tar.gz /usr/src/redhat/SOURCES/
# cd nagios-cn-3.2.3
# cp nagios.spec /usr/src/redhat/SPECS/
# rpmbuild -ba nagios.spec
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/nagios-cn-buildroot
Wrote: /usr/src/redhat/SRPMS/nagios-cn-3.2.3-1.src.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/nagios-cn-3.2.3-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/nagios-cn-www-3.2.3-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/nagios-cn-devel-3.2.3-1.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.64353
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd nagios-cn-3.2.3
+ rm -rf /var/tmp/nagios-cn-buildroot
+ exit 0
==++++++++++++++++++++++++++++++++++++++++++++++++++=======
rhel 6.5x64
# yum install gcc rpm-build pcre-devel
# yum install -y gd-devel zlib-devel libpng-devel libjpeg-devel gd-devel libjpeg-devel
# pwd
/usr/src/redhat
# ls
BUILD RPMS SOURCES SPECS SRPMS
# tar jxvf nagios-cn-3.2.3.tar.bz2
# tar czvf nagios-cn-3.2.3.tar.gz nagios-cn-3.2.3
# cp nagios-cn-3.2.3.tar.gz /usr/src/redhat/SOURCES/
# cd nagios-cn-3.2.3
# cp nagios.spec /usr/src/redhat/SPECS/
# cd /usr/src/redhat/SPECS/
# vim nagios.spec
41 BuildRequires: gd-devel > 1.8, zlib-devel > 1.2.2, libpng-devel > 1.2.30, libjpeg-devel > 6.1.9 //修改前
41 BuildRequires: gd-devel > 1.8, zlib-devel > 1.2.2, libpng-devel > 1.2.30, libjpeg-devel //修改后
#rpmbuild
-bp 只作準(zhǔn)備 (解壓與打補(bǔ)丁)
-bc 準(zhǔn)備并編譯
-bi 編譯并安裝
-bl 檢驗(yàn)文件是否齊全
-ba 編譯后做成*.rpm和src.rpm
-bb 編譯后做成*.rpm
-bs 只做成*.src.rpm
# rpmbuild -bb nagios.spec
*******
Processing files: nagios-cn-devel-3.2.3-1
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: nagios-cn = 3.2.3
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/nagios-cn-buildroot
Wrote: /usr/src/redhat/RPMS/x86_64/nagios-cn-3.2.3-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/nagios-cn-www-3.2.3-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/nagios-cn-devel-3.2.3-1.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.19349
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd nagios-cn-3.2.3
+ rm -rf /var/tmp/nagios-cn-buildroot
+ exit 0
You have new mail in /var/spool/mail/root
============================
分享名稱:nagios制作rpm包
瀏覽地址:http://aaarwkj.com/article8/pcdeop.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供建站公司、電子商務(wù)、服務(wù)器托管、外貿(mào)網(wǎng)站建設(shè)、用戶體驗(yàn)、App開發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)