From: Daniel Veillard libvir is released under the GNU Lesser
+ libvirt is released under the GNU Lesser
General Public License, see the file COPYING.LIB in the distribution
- for the precise wording. The only library that libvir depends upon is the
+ for the precise wording. The only library that libvirt depends upon is the
Xen store access library which is also licenced under the LGPL. Yes. The LGPL allows you to embed libvir into a proprietary
+ Yes. The LGPL allows you to embed libvirt into a proprietary
application. It would be graceful to send-back bug fixes and improvements
as patches for possible incorporation in the main development tree. It
will decrease your maintainance costs anyway if you do so. The original distribution comes from ftp://libvir.org/libvir/. The original distribution comes from ftp://libvirt.org/libvirt/. The most generic solution is to re-fetch the latest src.rpm , and
rebuild it locally with If everything goes well it will generate two binary rpm packages (one
providing the shared libs and virsh, and the other one, the -devel
package, providing includes, static libraries and scripts needed to build
- applications with libvir that you can install locally. One can also rebuild the RPMs from a tarball: Or from a configured tree with:License(s)
License(s)
Installation
Installation
rpm --rebuild libvir-xxx.src.rpm.rpm --rebuild libvirt-xxx.src.rpm.rpmbuild -ta libdir-xxx.tar.gz
service xend restart
As most UNIX libraries libvir follows the "standard":
-gunzip -c libvir-xxx.tar.gz | tar xvf -
cd libvir-xxxx
As most UNIX libraries libvirt follows the "standard":
+gunzip -c libvirt-xxx.tar.gz | tar xvf -
cd libvirt-xxxx
./configure --help
to see the options, then the compilation/installation proper
./configure [possible options]
At that point you may have to rerun ldconfig or a similar utility to update your list of installed shared libs.
Libvir requires libxenstore, which is usually provided by the xen packages as well as the public headers to compile against libxenstore.
./autogen.sh --prefix=/usr --disable-shared
To simplify the process of reusing the library, libvir comes with +
To simplify the process of reusing the library, libvirt comes with pkgconfig support, which can be used directly from autoconf support or via the pkg-config command line tool, like:
-pkg-config libvir --libs
pkg-config libvirt --libs