[英]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.