0

尝试使用命令构建 PHP:

dpkg-buildpackage -rfakeroot -d

但出现错误:

Thank you for using PHP.

config.status: creating php5.spec
config.status: creating main/build-defs.h
config.status: creating scripts/phpize
config.status: creating scripts/man1/phpize.1
config.status: creating scripts/php-config
config.status: WARNING:  '../scripts/php-config.in' seems to ignore the --datarootdir setting
config.status: creating scripts/man1/php-config.1
config.status: creating sapi/cli/php.1
config.status: creating main/php_config.h
config.status: executing libtool commands
config.status: executing default commands
/bin/sh: 10: --with-zlib-dir=/usr: not found
make: *** [configure-apache2-stamp] Error 127
dpkg-buildpackage: error: debian/rules build gave error exit status 2

怎么了?安装了 Zlib。

操作系统:服务器 Ubuntu 12.04

4

0 回答 0