On 04/20/2010 03:58 PM, Richard W.M. Jones wrote:
On Tue, Apr 20, 2010 at 02:59:23PM +0800, Yufang Zhang wrote:
> Hi all,
> I am trying to compile libguestfs from source in Fedora12, but failed
> with such error:
>
It's not clear, but are you trying to compile from the SRPM? If
so then you must add the following line to your ~/.rpmmacros file:
%libguestfs_buildnet 1
See the top of the spec file for an explanation.
I got the source code from
git://git.annexia.org/git/libguestfs.git
<
http://git.annexia.org/?p=libguestfs.git;a=summary>, and tried to
compile libguestfs within the directory.
If that's not the case, then make sure you have the latest
febootstrap, and make sure you are building --with-repo set to the
same name as the build host (eg. if --with-repo=fedora-12, then the
build host must be Fedora 12 too).
Does the initramfs directory exist? What's in it?
Rich.
For the host:
# rpm -qa | grep febootstrap
febootstrap-2.6-1.fc12.noarch
# cat /etc/redhat-release
Fedora release 12 (Constantine)
# uname -a
Linux yuzhang 2.6.32.11-99.fc12.x86_64 #1 SMP Mon Apr 5 19:59:38 UTC
2010 x86_64 x86_64 x86_64 GNU/Linux
And I use the following command before make:
# ./autogen.sh
--with-mirror=http://fileshare.englab.nay.redhat.com/redhat/fedora/linux/releases/12/x86_64/os
--with-updates=http://download.englab.nay.redhat.com/pub/fedora/linux/updates/12/x86_64/
--with-repo=fedora-12
Problem still exists.