Welcome! Log In Create A New Profile

Advanced

build error on php_5_3_fpm with RHEL 5.4 x86_64

Posted by Oon Arfiandwi 
Oon Arfiandwi
build error on php_5_3_fpm with RHEL 5.4 x86_64
February 28, 2010 02:52AM
Hello,

I try to install new technic of php-fpm from PHP Core - Experimental
(PHP 5.3.2+).

svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3_FPM
php_5_3_fpm
cd php_5_3_fpm
../buildconf
.../configure --prefix=/usr --with-mysqli=mysqlnd --with-mysql=mysqlnd
--with-pdo-mysql=mysqlnd --without-sqlite --with-gettext --with-mcrypt
--with-zlib --enable-mbstring --without-pgsql --with-curl --disable-
debug --disable-pdo --disable-rpath --enable-inline-optimization --
with-bz2 --enable-sockets --enable-sysvsem --enable-sysvshm --enable-
pcntl --enable-mbregex --with-mhash --with-xsl --enable-zip --with-
pcre-regex --disable-tokenizer --disable-filter --without-unixODBC --
disable-hash --enable-pdo --with-jpeg-dir --with-gd --with-
libdir=lib64 --enable-fpm --with-libevent-dir
make


and i got this error:
/bin/sh /home/x/php-fpm/php_5_3_fpm/fpm-build/libtool --silent --
preserve-dup-deps --mode=compile cc -I/usr/include -I/home/x/php-fpm/
php_5_3_fpm/sapi/fpm -Isapi/fpm/ -I/home/x/php-fpm/php_5_3_fpm/sapi/
fpm/ -DPHP_ATOM_INC -I/home/x/php-fpm/php_5_3_fpm/fpm-build/include -I/
home/x/php-fpm/php_5_3_fpm/fpm-build/main -I/home/x/php-fpm/
php_5_3_fpm -I/usr/include/libxml2 -I/home/x/php-fpm/php_5_3_fpm/fpm-
build/ext/date/lib -I/home/x/php-fpm/php_5_3_fpm/ext/date/lib -I/home/
x/php-fpm/php_5_3_fpm/ext/ereg/regex -I/home/x/php-fpm/php_5_3_fpm/ext/
mbstring/oniguruma -I/home/x/php-fpm/php_5_3_fpm/fpm-build/ext/
mbstring/oniguruma -I/home/x/php-fpm/php_5_3_fpm/ext/mbstring/libmbfl -
I/home/x/php-fpm/php_5_3_fpm/fpm-build/ext/mbstring/libmbfl -I/home/x/
php-fpm/php_5_3_fpm/ext/mbstring/libmbfl/mbfl -I/home/x/php-fpm/
php_5_3_fpm/fpm-build/ext/mbstring/libmbfl/mbfl -I/home/x/php-fpm/
php_5_3_fpm/ext/sqlite3/libsqlite -I/home/x/php-fpm/php_5_3_fpm/fpm-
build/TSRM -I/home/x/php-fpm/php_5_3_fpm/fpm-build/Zend -I/home/x/php-
fpm/php_5_3_fpm/main -I/home/x/php-fpm/php_5_3_fpm/Zend -I/home/x/php-
fpm/php_5_3_fpm/TSRM -I/home/x/php-fpm/php_5_3_fpm/fpm-build/ -I/
usr/include -g -O2 -fvisibility=hidden -c /home/x/php-fpm/php_5_3_fpm/
sapi/fpm/fpm/fastcgi.c -o sapi/fpm/fpm/fastcgi.lo
/home/x/php-fpm/php_5_3_fpm/fpm-build/libtool: line 1283: sapi/fpm/fpm/
fastcgi.loT: No such file or directory
/home/x/php-fpm/php_5_3_fpm/fpm-build/libtool: line 1373: sapi/fpm/fpm/
fastcgi.loT: No such file or directory
Assembler messages:
Fatal error: can't create sapi/fpm/fpm/fastcgi.o: No such file or
directory
make: *** [sapi/fpm/fpm/fastcgi.lo] Error 1

does anyone have the solution of this problem?

thank you..
Alexey A. Rybak
Re: build error on php_5_3_fpm with RHEL 5.4 x86_64
February 28, 2010 06:14AM
On Sun, Feb 28, 2010 at 10:48 AM, Oon Arfiandwi <oo.if.id@gmail.com> wrote:
>
> Hello,
>
> I try to install new technic of php-fpm from PHP Core - Experimental
> (PHP 5.3.2+).
>
> svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3_FPM
> php_5_3_fpm
> cd php_5_3_fpm
> ./buildconf
> ../configure --prefix=/usr --with-mysqli=mysqlnd --with-mysql=mysqlnd

mmmm seems like you have a mess of directories and liker can't find
sapi/fpm/fpm/fastcgi.lo
probably the easiest way is to delete everything, get repo again and
build everything not changing any directory, moving files etc

> --with-pdo-mysql=mysqlnd --without-sqlite --with-gettext --with-mcrypt
> --with-zlib --enable-mbstring --without-pgsql --with-curl --disable-
> debug --disable-pdo --disable-rpath --enable-inline-optimization --
> with-bz2 --enable-sockets --enable-sysvsem --enable-sysvshm --enable-
> pcntl --enable-mbregex --with-mhash --with-xsl --enable-zip --with-
> pcre-regex --disable-tokenizer --disable-filter --without-unixODBC --
> disable-hash --enable-pdo --with-jpeg-dir --with-gd --with-
> libdir=lib64 --enable-fpm --with-libevent-dir
> make
>
>
> and i got this error:
> /bin/sh /home/x/php-fpm/php_5_3_fpm/fpm-build/libtool --silent --
> preserve-dup-deps --mode=compile cc -I/usr/include -I/home/x/php-fpm/
> php_5_3_fpm/sapi/fpm -Isapi/fpm/ -I/home/x/php-fpm/php_5_3_fpm/sapi/
> fpm/ -DPHP_ATOM_INC -I/home/x/php-fpm/php_5_3_fpm/fpm-build/include -I/
> home/x/php-fpm/php_5_3_fpm/fpm-build/main -I/home/x/php-fpm/
> php_5_3_fpm -I/usr/include/libxml2 -I/home/x/php-fpm/php_5_3_fpm/fpm-
> build/ext/date/lib -I/home/x/php-fpm/php_5_3_fpm/ext/date/lib -I/home/
> x/php-fpm/php_5_3_fpm/ext/ereg/regex -I/home/x/php-fpm/php_5_3_fpm/ext/
> mbstring/oniguruma -I/home/x/php-fpm/php_5_3_fpm/fpm-build/ext/
> mbstring/oniguruma -I/home/x/php-fpm/php_5_3_fpm/ext/mbstring/libmbfl -
> I/home/x/php-fpm/php_5_3_fpm/fpm-build/ext/mbstring/libmbfl -I/home/x/
> php-fpm/php_5_3_fpm/ext/mbstring/libmbfl/mbfl -I/home/x/php-fpm/
> php_5_3_fpm/fpm-build/ext/mbstring/libmbfl/mbfl -I/home/x/php-fpm/
> php_5_3_fpm/ext/sqlite3/libsqlite -I/home/x/php-fpm/php_5_3_fpm/fpm-
> build/TSRM -I/home/x/php-fpm/php_5_3_fpm/fpm-build/Zend -I/home/x/php-
> fpm/php_5_3_fpm/main -I/home/x/php-fpm/php_5_3_fpm/Zend -I/home/x/php-
> fpm/php_5_3_fpm/TSRM -I/home/x/php-fpm/php_5_3_fpm/fpm-build/    -I/
> usr/include -g -O2 -fvisibility=hidden  -c /home/x/php-fpm/php_5_3_fpm/
> sapi/fpm/fpm/fastcgi.c -o sapi/fpm/fpm/fastcgi.lo
> /home/x/php-fpm/php_5_3_fpm/fpm-build/libtool: line 1283: sapi/fpm/fpm/
> fastcgi.loT: No such file or directory
> /home/x/php-fpm/php_5_3_fpm/fpm-build/libtool: line 1373: sapi/fpm/fpm/
> fastcgi.loT: No such file or directory
> Assembler messages:
> Fatal error: can't create sapi/fpm/fpm/fastcgi.o: No such file or
> directory
> make: *** [sapi/fpm/fpm/fastcgi.lo] Error 1
>
> does anyone have the solution of this problem?
>
> thank you..
>
>



--

wbr,
fisher
Oon Arfiandwi
Re: build error on php_5_3_fpm with RHEL 5.4 x86_64
February 28, 2010 07:00AM
On Sun, Feb 28, 2010 at 6:12 PM, Alexey A. Rybak <alexey.rybak@gmail.com>wrote:

> On Sun, Feb 28, 2010 at 10:48 AM, Oon Arfiandwi <oo.if.id@gmail.com>
> wrote:
> >
> > Hello,
> >
> > I try to install new technic of php-fpm from PHP Core - Experimental
> > (PHP 5.3.2+).
> >
> > svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3_FPM
> > php_5_3_fpm
> > cd php_5_3_fpm
> > ./buildconf
> > ../configure --prefix=/usr --with-mysqli=mysqlnd --with-mysql=mysqlnd
>
> mmmm seems like you have a mess of directories and liker can't find
> sapi/fpm/fpm/fastcgi.lo
> probably the easiest way is to delete everything, get repo again and
> build everything not changing any directory, moving files etc
>
>
>
I already try it for 3 times.
just remove, svn checkout, ./buildconf, and configure --enable-fpm.

but the problem is same.

--
regards,
Oon Arfiandwi
Alexey A. Rybak
Re: build error on php_5_3_fpm with RHEL 5.4 x86_64
February 28, 2010 07:24AM
>> > svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3_FPM
>> > php_5_3_fpm
>> > cd php_5_3_fpm
>> > ./buildconf
>> > ../configure --prefix=/usr --with-mysqli=mysqlnd --with-mysql=mysqlnd

how could this be a real part of working procedure when you have
../buildconf and ../configure isntead of ./configure?

>>
>> mmmm seems like you have a mess of directories and liker can't find
>> sapi/fpm/fpm/fastcgi.lo
>> probably the easiest way is to delete everything, get repo again and
>> build everything not changing any directory, moving files etc
>>
>>
>
> I already try it for 3 times.
> just remove, svn checkout, ./buildconf, and configure --enable-fpm.
>
> but the problem is same.

please post the full bash history from the very beginning to the very
end: from svn checkout to the error
what you posted before seems to be just a part of what you did

--

wbr,
fisher
Oon Arfiandwi
Re: build error on php_5_3_fpm with RHEL 5.4 x86_64
February 28, 2010 08:30AM
On Sun, Feb 28, 2010 at 7:23 PM, Alexey A. Rybak <alexey.rybak@gmail.com>wrote:

> >> > svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3_FPM
> >> > php_5_3_fpm
> >> > cd php_5_3_fpm
> >> > ./buildconf
> >> > ../configure --prefix=/usr --with-mysqli=mysqlnd --with-mysql=mysqlnd
>
> how could this be a real part of working procedure when you have
> ./buildconf and ../configure isntead of ./configure?
>
>
yes, my fault.
i build it using the previous scenario (patch scenario),
i create directory fpm-build inside the php_5_3_fpm

now the problem is solved.

thank you Alexey.


--
regards,
Oon Arfiandwi
moviesite
Re: build error on php_5_3_fpm with RHEL 5.4 x86_64
March 06, 2010 06:22PM
On Feb 28, 2:23 pm, "Alexey A. Rybak" <alexey.ry...@gmail.com> wrote:
> >> > svn cohttp://svn.php.net/repository/php/php-src/branches/PHP_5_3_FPM
> >> > php_5_3_fpm
> >> > cd php_5_3_fpm
> >> > ./buildconf
> >> > ../configure --prefix=/usr --with-mysqli=mysqlnd --with-mysql=mysqlnd
>
> how could this be a real part of working procedure when you have
> ./buildconf and ../configure isntead of ./configure?
>

the download page says to use ./buildconf:

svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3_FPM
php_5_3_fpm
cd php_5_3_fpm
../buildconf

Should we not do that?
Currently battling with the notorious libevent problem.
checking for libevent >= 1.4.11 install prefix... configure: error:
Could not find libevent >= 1.4.11 in /usr/local/lib

checking for libevent >= 1.4.11 install prefix... configure: error:
Could not find libevent >= 1.4.11 in /usr/lib

locate libevent:
/usr/lib/libevent-1.1.so.
1
/usr/lib/libevent-1.1a.so.
1
/usr/lib/libevent-1.3b.so.
1
/usr/lib/libevent-1.3d.so.
1
/usr/lib/libevent-1.3e.so.
1
/usr/lib/libevent-1.3e.so.
1.0.3
/usr/lib/
libevent.a
/usr/lib/
libevent.so
/usr/lib/libevent.so.
1
/usr/local/lib/libevent-1.4.so.
2
/usr/local/lib/libevent-1.4.so.
2.1.3
/usr/local/lib/
libevent.a
/usr/local/lib/
libevent.la
/usr/local/lib/
libevent.so
/usr/local/lib/libevent_core-1.4.so.
2
/usr/local/lib/libevent_core-1.4.so.
2.1.3
/usr/local/lib/
libevent_core.a
/usr/local/lib/
libevent_core.la
/usr/local/lib/
libevent_core.so
/usr/local/lib/libevent_extra-1.4.so.
2
/usr/local/lib/libevent_extra-1.4.so.
2.1.3
/usr/local/lib/
libevent_extra.a
/usr/local/lib/
libevent_extra.la
/usr/local/lib/libevent_extra.so

uname -a:
Linux fut004 2.6.28-16-server #55-Ubuntu SMP Tue Oct 20 20:50:00 UTC
2009 i686 GNU/Linux

config options:
usr/local/src/php_5_3_fpm$ sudo ./configure --enable-fpm --with-
mcrypt --with-zlib --enable-mbstring --disable-pdo --with-pgsql --with-
mysql --with-curl --disable-debug --disable-rpath --enable-inline-
optimization --with-bz2 --enable-sockets --enable-sysvshm --enable-
pcntl --enable-mbregex --with-mhash --enable-zip --with-pcre-regex --
with-libevent-dir="/usr/lib"

What am I doing wrong?

thanks :-)
Gordon Pettey
Re: build error on php_5_3_fpm with RHEL 5.4 x86_64
March 06, 2010 11:02PM
On Sat, Mar 6, 2010 at 4:35 PM, moviesite <ian@vionia.com> wrote:
>
>
> On Feb 28, 2:23 pm, "Alexey A. Rybak" <alexey.ry...@gmail.com> wrote:
>> >> > svn cohttp://svn.php.net/repository/php/php-src/branches/PHP_5_3_FPM
>> >> > php_5_3_fpm
>> >> > cd php_5_3_fpm
>> >> > ./buildconf
>> >> > ../configure --prefix=/usr --with-mysqli=mysqlnd --with-mysql=mysqlnd
>>
>> how could this be a real part of working procedure when you have
>> ./buildconf and ../configure isntead of ./configure?
>>
>
> the download page says to use ./buildconf:
>
> svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3_FPM
> php_5_3_fpm
> cd php_5_3_fpm
> ./buildconf
>
> Should we not do that?

That's the way you're supposed to do it. Alexey is misinformed.
../buildconf rebuilds the configure script so that it adds the fpm
options. You can run configure regardless of where it is in path;
../configure, ../configure, and
/etc/randompath/reallydumbplacetoputsourcecode/yetanothersubdir/configure
would all work.
moviesite
Re: build error on php_5_3_fpm with RHEL 5.4 x86_64
March 07, 2010 02:22AM
On Mar 7, 6:01 am, Gordon Pettey <petteyg...@gmail.com> wrote:
> That's the way you're supposed to do it. Alexey is misinformed.
> ./buildconf rebuilds the configure script so that it adds the fpm
> options. You can run configure regardless of where it is in path;
> ./configure, ../configure, and
> /etc/randompath/reallydumbplacetoputsourcecode/yetanothersubdir/configure
> would all work.

Thanks for clearing that up.

I did sudo make clean, sudo ./buildconf, sudo ./configure (+options)
but it still crashes with libevent.

It does bitch about some bugs in autoconf and wants me to downgrade to
2.13. is this related? I'm new to Ubuntu (use Gentoo at home) and not
familiar with downgrading packages.

Thanks, Ian
moviesite
Re: build error on php_5_3_fpm with RHEL 5.4 x86_64
March 08, 2010 08:00AM
On Mar 7, 9:21 am, moviesite <i...@vionia.com> wrote:
> On Mar 7, 6:01 am, Gordon Pettey <petteyg...@gmail.com> wrote:
>
> Thanks for clearing that up.
>
> I did sudo make clean, sudo ./buildconf, sudo ./configure (+options)
> but it still crashes with libevent.
>
> It does bitch about some bugs in autoconf and wants me to downgrade to
> 2.13. is this related? I'm new to Ubuntu (use Gentoo at home) and not
> familiar with downgrading packages.

got the thing to compile by using the .13 version and leaving out the
options for the libevent dir and libxml dir.
However had trouble getting nginx to handle the php pages so switch to
this method:
http://tomasz.sterna.tv/2009/04/php-fastcgi-with-nginx-on-ubuntu/

which I got working after editing the SCRIPT_FILENAME to have a
hardcoded path.

Now not sure if php_fpm is called or not ... have the php-cgi running
on port 9000.

cheers, Ian
Gordon Pettey
Re: build error on php_5_3_fpm with RHEL 5.4 x86_64
March 08, 2010 09:04AM
The 0.6 patch (the one that needs to run ./buildconf) doesn't use
php-cgi as the binary anymore, it produces a separate php-fpm binary.
Use that one :)
moviesite
Re: build error on php_5_3_fpm with RHEL 5.4 x86_64
March 08, 2010 11:44AM
On Mar 8, 4:03 pm, Gordon Pettey <petteyg...@gmail.com> wrote:
> The 0.6 patch (the one that needs to run ./buildconf) doesn't use
> php-cgi as the binary anymore, it produces a separate php-fpm binary.
> Use that one :)

I installed php-cgi as per the website above so I don't think I'm
using php_fpm anymore.... all a little like black magic for me at the
moment :-)

cheers, Ian
Oleg Roschupkin
Re: build error on php_5_3_fpm with RHEL 5.4 x86_64
March 08, 2010 11:00PM
07.03.2010, в 15:21, moviesite написал(а):

> It does bitch about some bugs in autoconf and wants me to downgrade to
> 2.13. is this related? I'm new to Ubuntu (use Gentoo at home) and not
> familiar with downgrading packages.

Many linux distributives have two packgaes for autoconf - 'autoconf'
and 'autoconf213'. Also, some distributives have script which
determines which version of autoconf you need.

Or for easy manual switching of autoconf versions you may put
following lines in your .bashrc (or just execute them in command line):
# PHP stuff - to resolve autoconf and autoheader problems
export PHP_AUTOCONF='autoconf213'
export PHP_AUTOHEADER='autoheader213'

--
Yours, Oleg Roschupkin
jjahson@gmail.com
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 147
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