libvirt-php Installation

Compiling a release tarball

libvirt-php is using the standard configure/make/make install steps:

      $ unxz -c libvirt-php-x.x.x.tar.xz | tar xvf -
      $ cd libvirt-php-x.x.x
      $ ./configure

The configure script can be given options to change its default behaviour.

To get the complete list of the options it can take, pass it the --help option like this:

      $ ./configure --help

When you have determined which options you want to use (if any), continue the process.

Note the use of sudo with the make install command below. Using sudo is only required when installing to a location your user does not have write access to. Installing to a system location is a good example of this.

If you are installing to a location that your user does have write access to, then you can instead run the make install command without putting sudo before it.

      $ ./configure [possible options]
      $ make
      $ sudo make install

By this command you'll have the libvirt-php installed on your system.

Building from a GIT checkout

The libvirt-php build process uses GNU autotools, so after obtaining a checkout it is necessary to generate the configure script and templates using the command, passing the extra arguments as for configure. As an example, to do a complete build and install it into your home directory run:

      $ ./
      $ make
      $ sudo make install