[libvirt] libvirt-php --with-php-config=/path/to/php is broken.

Shaun Reitan shaun.reitan at ndchost.com
Fri Feb 10 18:46:13 UTC 2017


When running the following command I ended up getting errors that phpize 
was missing. Trying to dig into this further i found that configure.ac 
was just trying to run php-config without providing a path.  The 
following patch corrects the issue by using the $PHPCONFIG variable 
instead.

./configure --prefix=/opt/libvirt-php 
--with-php-config=/path/to/php-config`

diff --git a/configure.ac b/configure.ac
index f232756..d93e946 100644
--- a/configure.ac
+++ b/configure.ac
@@ -159,7 +159,7 @@ if test "x$PHPCONFIG" = "xno"; then
     AC_MSG_ERROR([php-config not found; please install the PHP SDK])
fi

-AC_PATH_PROG([PHPIZE], [phpize], [no], [`php-config 
--prefix`/bin$PATH_SEPARATOR$PATH])
+AC_PATH_PROG([PHPIZE], [phpize], [no], [`$PHPCONFIG 
--prefix`/bin$PATH_SEPARATOR$PATH])
if test "x$PHPIZE" = "xno"; then
     AC_MSG_ERROR([phpize not found; please install the PHP SDK])
fi


--
Shaun Reitan
Network Data Center Host, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170210/52547b54/attachment-0001.htm>


More information about the libvir-list mailing list