On Fri, Oct 25, 2013 at 01:14:04PM -0700, Scott Baker wrote:> On 10/25/2013 12:56 PM, Richard W.M. Jones wrote: > > F20 - it's in the beta now (as of yesterday). > > > > Rich. > > Wow this has a lot of dependencies :) Two questions...Let's put this on the mailing list so others can help.> Do I need OCaml installed? > Where does guestfs_protocol.x come from? > > I checked out the master branch from github and tried compiling that. > > Warning: Install OCaml compiler in order to rebuild the generated files. > touch stamp-generator > make[2]: Leaving directory `/tmp/libguestfs/generator' > Making all in src > make[2]: Entering directory `/tmp/libguestfs/src' > rm -f guestfs_protocol.c-t guestfs_protocol.c-t2 > rm -f guestfs_protocol.h-t > rm -f errnostring-gperf.c > rpcgen -DHAVE_XDR_UINT64_T=1 -c -o guestfs_protocol.c-t guestfs_protocol.x > gperf -t errnostring-gperf.gperf > errnostring-gperf.c-t > rpcgen -DHAVE_XDR_UINT64_T=1 -h -o guestfs_protocol.h-t guestfs_protocol.x > guestfs_protocol.x: No such file or directory > make[2]: *** [guestfs_protocol.c] Error 1 > make[2]: *** Waiting for unfinished jobs.... > guestfs_protocol.x: No such file or directory > make[2]: *** [guestfs_protocol.h] Error 1 > Cannot open input file 'errnostring-gperf.gperf' > make[2]: *** [errnostring-gperf.c] Error 1 > make[2]: Leaving directory `/tmp/libguestfs/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/tmp/libguestfs' > make: *** [all] Error 2Did you start from the git repo or from an RPM? I would start from the git repo. First install all the dependencies by downloading the following file: http://pkgs.fedoraproject.org/cgit/libguestfs.git/plain/libguestfs.spec and doing (as root): yum-builddep libguestfs.spec You will have to comment out a handful of BuildRequires lines from the spec file (because packages are not available in RHEL) until you get everything possible installed. Secondly, go to: http://oirase.annexia.org/tmp/libguestfs-RHEL-6.5/ and install augeas* and febootstrap* packages for your architecture. Then clone the libguestfs upstream git from github, and follow the `Building' section in the README file (all non-root). You might need to do: make -C po-docs update-po at some point half way through the build. It should be obvious where. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
On Fri, Oct 25, 2013 at 09:20:50PM +0100, Richard W.M. Jones wrote:> Then clone the libguestfs upstream git from github, and follow the > `Building' section in the README file (all non-root).Actually it's more accurate to say: follow the building instructions here: https://www.redhat.com/archives/libguestfs/2013-October/thread.html#00060 including creating localconfigure, localenv etc. I just followed all that, and it certainly works for me. Note you can run virt-builder without installing (and without needing root) by doing: export VIRT_BUILDER_SOURCE=http://libguestfs.org/download/builder/index.asc ./run ./builder/virt-builder -l ./run ./builder/virt-builder fedora-19 Setting VIRT_BUILDER_SOURCE is necessary because the ./run script sets the source to the local directory, which is useful for testing, not so good for using. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Maybe Matching Threads
- [PATCH v2 1/7] lib: Share common protocol and errnostring libraries with the library and daemon.
- [PATCH] lib: Prefer tirpc for XDR, and rationlise how we search for alternatives.
- Re: Kernel panic with virt-builder etc.
- Re: Makefile probably incorrect
- Makefile probably incorrect