Welcome! Log In Create A New Profile

Advanced

Make error when tried to install PHP-FPM on Ubuntu

Posted by Sanoj 
Make error when tried to install PHP-FPM on Ubuntu
March 15, 2010 02:03PM
I fail to install PHP-FPM with PHP on Ubuntu Server 9.10. I have tried with PHP 5.3.0 and PHP 5.3.1, but both results with the same problem when I run [b]../configure && make[/b].

I followed the instructions on http://github.com/dreamcat4/php-fpm
but after patching PHP with the PHP-FPM and execute [b]../configure && make[/b] I get this messages:
[code]
../configure: 11986: ac_fn_c_check_func: not found
../configure: 11997: ac_fn_c_check_func: not found
../configure: 12147: 5: Bad file descriptor
../configure: 12147: :: checking for socket in -lsocket: not found
../configure: 12147: 6: Bad file descriptor
../configure: 12147: checking for socket in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12147: ac_fn_c_try_link: not found
../configure: 12147: 5: Bad file descriptor
../configure: 12147: :: result: no: not found
../configure: 12147: 6: Bad file descriptor
../configure: 12147: no: not found
../configure: 12147: 5: Bad file descriptor
../configure: 12147: :: checking for __socket in -lsocket: not found
../configure: 12147: 6: Bad file descriptor
../configure: 12147: checking for __socket in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12147: ac_fn_c_try_link: not found
../configure: 12147: 5: Bad file descriptor
../configure: 12147: :: result: no: not found
../configure: 12147: 6: Bad file descriptor
../configure: 12147: no: not found
../configure: 12154: ac_fn_c_check_func: not found
../configure: 12165: ac_fn_c_check_func: not found
../configure: 12315: 5: Bad file descriptor
../configure: 12315: :: checking for socketpair in -lsocket: not found
../configure: 12315: 6: Bad file descriptor
../configure: 12315: checking for socketpair in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12315: ac_fn_c_try_link: not found
../configure: 12315: 5: Bad file descriptor
../configure: 12315: :: result: no: not found
../configure: 12315: 6: Bad file descriptor
../configure: 12315: no: not found
../configure: 12315: 5: Bad file descriptor
../configure: 12315: :: checking for __socketpair in -lsocket: not found
../configure: 12315: 6: Bad file descriptor
../configure: 12315: checking for __socketpair in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12315: ac_fn_c_try_link: not found
../configure: 12315: 5: Bad file descriptor
../configure: 12315: :: result: no: not found
../configure: 12315: 6: Bad file descriptor
../configure: 12315: no: not found
../configure: 12322: ac_fn_c_check_func: not found
../configure: 12333: ac_fn_c_check_func: not found
../configure: 12483: 5: Bad file descriptor
../configure: 12483: :: checking for htonl in -lsocket: not found
../configure: 12483: 6: Bad file descriptor
../configure: 12483: checking for htonl in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12483: ac_fn_c_try_link: not found
../configure: 12483: 5: Bad file descriptor
../configure: 12483: :: result: no: not found
../configure: 12483: 6: Bad file descriptor
../configure: 12483: no: not found
../configure: 12483: 5: Bad file descriptor
../configure: 12483: :: checking for __htonl in -lsocket: not found
../configure: 12483: 6: Bad file descriptor
../configure: 12483: checking for __htonl in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12483: ac_fn_c_try_link: not found
../configure: 12483: 5: Bad file descriptor
../configure: 12483: :: result: no: not found
../configure: 12483: 6: Bad file descriptor
../configure: 12483: no: not found
../configure: 12490: ac_fn_c_check_func: not found
../configure: 12501: ac_fn_c_check_func: not found
../configure: 12651: 5: Bad file descriptor
../configure: 12651: :: checking for gethostname in -lnsl: not found
../configure: 12651: 6: Bad file descriptor
../configure: 12651: checking for gethostname in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12651: ac_fn_c_try_link: not found
../configure: 12651: 5: Bad file descriptor
../configure: 12651: :: result: no: not found
../configure: 12651: 6: Bad file descriptor
../configure: 12651: no: not found
../configure: 12651: 5: Bad file descriptor
../configure: 12651: :: checking for __gethostname in -lnsl: not found
../configure: 12651: 6: Bad file descriptor
../configure: 12651: checking for __gethostname in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12651: ac_fn_c_try_link: not found
../configure: 12651: 5: Bad file descriptor
../configure: 12651: :: result: no: not found
../configure: 12651: 6: Bad file descriptor
../configure: 12651: no: not found
../configure: 12658: ac_fn_c_check_func: not found
../configure: 12669: ac_fn_c_check_func: not found
../configure: 12819: 5: Bad file descriptor
../configure: 12819: :: checking for gethostbyaddr in -lnsl: not found
../configure: 12819: 6: Bad file descriptor
../configure: 12819: checking for gethostbyaddr in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12819: ac_fn_c_try_link: not found
../configure: 12819: 5: Bad file descriptor
../configure: 12819: :: result: no: not found
../configure: 12819: 6: Bad file descriptor
../configure: 12819: no: not found
../configure: 12819: 5: Bad file descriptor
../configure: 12819: :: checking for __gethostbyaddr in -lnsl: not found
../configure: 12819: 6: Bad file descriptor
../configure: 12819: checking for __gethostbyaddr in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12819: ac_fn_c_try_link: not found
../configure: 12819: 5: Bad file descriptor
../configure: 12819: :: result: no: not found
../configure: 12819: 6: Bad file descriptor
../configure: 12819: no: not found
../configure: 12826: ac_fn_c_check_func: not found
../configure: 12837: ac_fn_c_check_func: not found
../configure: 12987: 5: Bad file descriptor
../configure: 12987: :: checking for yp_get_default_domain in -lnsl: not found
../configure: 12987: 6: Bad file descriptor
../configure: 12987: checking for yp_get_default_domain in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12987: ac_fn_c_try_link: not found
../configure: 12987: 5: Bad file descriptor
../configure: 12987: :: result: no: not found
../configure: 12987: 6: Bad file descriptor
../configure: 12987: no: not found
../configure: 12987: 5: Bad file descriptor
../configure: 12987: :: checking for __yp_get_default_domain in -lnsl: not found
../configure: 12987: 6: Bad file descriptor
../configure: 12987: checking for __yp_get_default_domain in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12987: ac_fn_c_try_link: not found
../configure: 12987: 5: Bad file descriptor
../configure: 12987: :: result: no: not found
../configure: 12987: 6: Bad file descriptor
../configure: 12987: no: not found
../configure: 12995: ac_fn_c_check_func: not found
../configure: 13006: ac_fn_c_check_func: not found
../configure: 13156: 5: Bad file descriptor
../configure: 13156: :: checking for dlopen in -ldl: not found
../configure: 13156: 6: Bad file descriptor
../configure: 13156: checking for dlopen in -ldl... : not found
cat: confdefs.h: No such file or directory
../configure: 13156: ac_fn_c_try_link: not found
../configure: 13156: 5: Bad file descriptor
../configure: 13156: :: result: no: not found
../configure: 13156: 6: Bad file descriptor
../configure: 13156: no: not found
../configure: 13156: 5: Bad file descriptor
../configure: 13156: :: checking for __dlopen in -ldl: not found
../configure: 13156: 6: Bad file descriptor
../configure: 13156: checking for __dlopen in -ldl... : not found
cat: confdefs.h: No such file or directory
../configure: 13156: ac_fn_c_try_link: not found
../configure: 13156: 5: Bad file descriptor
../configure: 13156: :: result: no: not found
../configure: 13156: 6: Bad file descriptor
../configure: 13156: no: not found
../configure: 13164: 5: Bad file descriptor
../configure: 13164: :: checking for sin in -lm: not found
../configure: 13164: 6: Bad file descriptor
../configure: 13164: checking for sin in -lm... : not found
cat: confdefs.h: No such file or directory
../configure: 13196: ac_fn_c_try_link: not found
../configure: 13198: 5: Bad file descriptor
../configure: 13198: :: result: no: not found
../configure: 13198: 6: Bad file descriptor
../configure: 13198: no: not found
../configure: 13214: ac_fn_c_check_func: not found
../configure: 13225: ac_fn_c_check_func: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: checking for inet_aton in -lresolv: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: checking for inet_aton in -lresolv... : not found
cat: confdefs.h: No such file or directory
../configure: 13510: ac_fn_c_try_link: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: result: no: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: no: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: checking for __inet_aton in -lresolv: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: checking for __inet_aton in -lresolv... : not found
cat: confdefs.h: No such file or directory
../configure: 13510: ac_fn_c_try_link: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: result: no: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: no: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: checking for inet_aton in -lbind: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: checking for inet_aton in -lbind... : not found
cat: confdefs.h: No such file or directory
../configure: 13510: ac_fn_c_try_link: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: result: no: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: no: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: checking for __inet_aton in -lbind: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: checking for __inet_aton in -lbind... : not found
cat: confdefs.h: No such file or directory
../configure: 13510: ac_fn_c_try_link: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: result: no: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: no: not found
../configure: 13516: 5: Bad file descriptor
../configure: 13516: :: checking for ANSI C header files: not found
../configure: 13516: 6: Bad file descriptor
../configure: 13516: checking for ANSI C header files... : not found
cat: confdefs.h: No such file or directory
../configure: 13615: ac_fn_c_try_compile: not found
../configure: 13617: 5: Bad file descriptor
../configure: 13617: :: result: no: not found
../configure: 13617: 6: Bad file descriptor
../configure: 13617: no: not found
../configure: 13665: ac_cv_header_dirent_dirent.h: not found
../configure: 13665: 5: Bad file descriptor
../configure: 13665: :: checking for dirent.h that defines DIR: not found
../configure: 13665: 6: Bad file descriptor
../configure: 13665: checking for dirent.h that defines DIR... : not found
eval: 1: Bad substitution
[/code]

[b]How can I fix this or is there any workaround?[/b]
Re: Make error when tried to install PHP-FPM on Ubuntu
March 16, 2010 08:34AM
try install from svn
http://svn.php.net/repository/php/php-src/branches/PHP_5_3_FPM/
Re: Make error when tried to install PHP-FPM on Ubuntu
March 16, 2010 10:29PM
I have now tried to install it from SVN, and followed the instructions for PHP Core Experimental from: http://php-fpm.org/download/

But with that method, do I not get an ./configure-file that I can run the configuration with.
elb
Re: Make error when tried to install PHP-FPM on Ubuntu
May 18, 2010 11:39AM
Hey guy,

it seems, fpm needs autoconf2.13 to be installed.
but since Ubuntu10.4 has autoconf2.64 installed by default, you was unable to configure php-fpm!

so run apt-get install autoconf2.13 as root user and everything's going to be fine, i guess.

There are exactly 10 types of people.
Those who understand binary and those who don't.
Re: Make error when tried to install PHP-FPM on Ubuntu
May 18, 2010 11:57AM
elb Wrote:
-------------------------------------------------------
> Hey guy,
>
> it seems, fpm needs autoconf2.13 to be installed.
> but since Ubuntu10.4 has autoconf2.64 installed by
> default, you was unable to configure php-fpm!
>
> so run apt-get install autoconf2.13 as root user
> and everything's going to be fine, i guess.

Installing autoconf2.13 is worth a try, but it shouldn't be necessary for PHP 5.3.2 release with fpm from the php.net trunk on Ubuntu Lucid which has autoconf version 2.65. There may be more warnings generated with 2.65 but it compiles and runs. Here is the build log from my https://launchpad.net/~brianmercer/+archive/php PPA using autoconf 2.65 and the latest svn.php.net trunk of fpm:

http://launchpadlibrarian.net/48463057/buildlog_ubuntu-lucid-i386.php5_5.3.2-1ubuntu4.1ppa1~lucid1_FULLYBUILT.txt.gz
Jérôme Loyet
Re: Make error when tried to install PHP-FPM on Ubuntu
May 18, 2010 12:14PM
2010/5/18 brianmercer <nginx-forum@nginx.us>:
> elb Wrote:
> -------------------------------------------------------
>> Hey guy,
>>
>> it seems, fpm needs autoconf2.13 to be installed.
>> but since Ubuntu10.4 has autoconf2.64 installed by
>> default, you was unable to configure php-fpm!
>>
>> so run apt-get install autoconf2.13 as root user
>> and everything's going to be fine, i guess.
>
> Installing autoconf2.13 is worth a try, but it shouldn't be necessary for PHP 5.3.2 release with fpm from the php.net trunk on Ubuntu Lucid which has autoconf version 2.65.  There may be more warnings generated with 2.65 but it compiles and runs.  Here is the build log from my https://launchpad.net/~brianmercer/+archive/php PPA using autoconf 2.65 and the latest svn.php.net trunk of fpm:
>

FYI:

configure: WARNING: unrecognized options: --with-ttf, --with-libevent

replace
--with-libevent=shared,/usr
by
--with-libevent-dir=/usr

> http://launchpadlibrarian.net/48463057/buildlog_ubuntu-lucid-i386.php5_5.3.2-1ubuntu4.1ppa1~lucid1_FULLYBUILT.txt.gz
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?3,64091,87789#msg-87789
>
>
Re: Make error when tried to install PHP-FPM on Ubuntu
May 18, 2010 12:17PM
Jérôme Loyet Wrote:
-------------------------------------------------------
> FYI:
>
> configure: WARNING: unrecognized options:
> --with-ttf, --with-libevent
>
> replace
> --with-libevent=shared,/usr
> by
> --with-libevent-dir=/usr

Thanks Jérôme. I'll get that fixed today.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 195
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready