簡體   English   中英

編譯並構建Fedora的補鞋匠源代碼rpm

[英]Compile and build the cobbler source code rpm for fedora

最近,我讀了這篇文章http://howto.basjes.nl/linux/doing-pxe-without-dhcp-control,並想嘗試使用補鞋匠。

因為我需要在Fedora上運行最新的補鞋匠,並且需要從源代碼進行編譯和安裝,而不是使用yum install 我是linux編程的初學者,想了解更多。

在Github上的補鞋匠文檔Wiki上進行了研究,並顯示了有關“ Fedora的源RPM構建說明 ”的非常簡單的指南。

Install python-setuptools and python-devel from yum
rpmbuild --rebuild cobbler*.src.rpm
install the RPM, which is now built in /usr/src/redhat/RPMS/noarch
satisfy any dependencies you have by using yum and the stock Fedora repos

我從Github下載源代碼,並在“ cobbler”文件夾下執行rpmbuild --rebuild cobbler*.src.rpm時收到錯誤消息。 "there is no such cobbler*.src.rpm"

我通過運行“ make install”進行了另一次嘗試,似乎可以正常運行,因為我看到有輸出,但是找不到輸出文件?

誰能告訴我如何在Fedora 16上編譯和安裝補鞋匠源代碼? 謝謝。

Makefile中內置有一個目標,用於構建rpm。 因此,假設您已安裝了所有必需的工具,只需在源代碼樹的根目錄中發出此命令即可

make rpms

應該在源根目錄下的rpm-build子目錄中構建一組rpm。

PS我通常使用CentOS,我需要添加EPEL存儲庫以獲取PyYAML rpm(需要構建補鞋匠rpm)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM