Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Trying to build PHP with command:

dpkg-buildpackage -rfakeroot -d

But got an error:

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

What's wrong? Zlib installed.

OS: Server Ubuntu 12.04

share|improve this question
    
Why are you trying compile php...do you have to much free time ? Compiling is a last resort use debs packages –  B14D3 Jul 3 '13 at 6:43
    
Cuz I need bundled GD library, any way, I've solved probledm, but can't remember how :))) –  Alex Oct 20 '13 at 5:50
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.