Welcome! Log In Create A New Profile

Advanced

installation php-fpm 0.6-5.3.0 on FreeBSD 7.2 (BUGS)

Posted by VoltTerra 
installation php-fpm 0.6-5.3.0 on FreeBSD 7.2 (BUGS)
October 01, 2009 01:28AM
During disscusion in russian mailing list we found some problems with installation on FreeBSD:
1) If you try to "make install" it fails, while "gmake install" works fine.
2) There's undocumented dependence in "generate-fpm-patch" (bash).
the solution is [code]sed -i '' -e '1s|^#!/bin/bash|#!/bin/sh|' generate-fpm-patch[/code]
because nothing "bash-specific" is required
3) Installing rc script to /etc/init.d/php-fpm is a bad idea on FreeBSD.
/usr/local/etc/rc.d/php-fpm fits better
dreamcat four
Re: installation php-fpm 0.6-5.3.0 on FreeBSD 7.2 (BUGS)
October 01, 2009 03:28AM
On Thu, Oct 1, 2009 at 6:28 AM, VoltTerra <nginx-forum@nginx.us> wrote:
>
> During disscusion in russian mailing list we found some problems with installation on FreeBSD:
> 1) If you try to "make install" it fails, while "gmake install" works fine.

Ah, does anyone know actually why this happens? Is the 'make' program
on BSD not the gnu make? Still, even with BSD make why shouldn't it
work? I'm asking because it would be nice to fix the make install
target properly and to be compatible for both. (and not wanting to add
an unnecessary dependancy / different command for gmake). We can raise
a bug in launchpad, if any help for attaching log files, etc.

> 2) There's undocumented dependence in "generate-fpm-patch" (bash).
> the solution is sed -i '' -e '1s|^#!/bin/bash|#!/bin/sh|' generate-fpm-patch
> because nothing "bash-specific" is required

Okay, this would require not much work. It seems like a good idea.

> 3) Installing rc script to /etc/init.d/php-fpm is a bad idea on FreeBSD.
> /usr/local/etc/rc.d/php-fpm fits better

Sure we can provide 1 more configure flag --with-init-path=[PATH]

Probably better to to all of these in one go. So if there are any
other issue, please report them. Not sure what to do exactly about the
readme.markdown. If it needs changing, that might make the russian
translation out of date. But we are happy to recieve suggestions /
patches.

For example: if we are unable to fix this issue with make install
target, we could provide a little section explaining about FreeBSD /
*BSD. (or otherwise inline into existing sections). Other improvements
welcome.

dreamcat4
dreamcat4@gmail.com
Re: installation php-fpm 0.6-5.3.0 on FreeBSD 7.2 (BUGS)
October 01, 2009 03:38AM
On Thu, Oct 1, 2009 at 2:26 PM, dreamcat four <dreamcat4@gmail.com> wrote:
>
> On Thu, Oct 1, 2009 at 6:28 AM, VoltTerra <nginx-forum@nginx.us> wrote:
>>
>> During disscusion in russian mailing list we found some problems with installation on FreeBSD:
>> 1) If you try to "make install" it fails, while "gmake install" works fine.
>
> Ah, does anyone know actually why this happens? Is the 'make' program
> on BSD not the gnu make? Still, even with BSD make why shouldn't it
> work? I'm asking because it would be nice to fix the make install
> target properly and to be compatible for both. (and not wanting to add
> an unnecessary dependancy / different command for gmake). We can raise
> a bug in launchpad, if any help for attaching log files, etc.
>

gnu make is different from bsd and solaris make.

And yes, gmake is also needed on solaris.

It is a known 'problem' that many programs specifically require gnu make.


--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
dreamcat four
Re: installation php-fpm 0.6-5.3.0 on FreeBSD 7.2 (BUGS)
October 01, 2009 04:44AM
> On Thu, Oct 1, 2009 at 2:26 PM, dreamcat four <dreamcat4@gmail.com> wrote:
>>
>> On Thu, Oct 1, 2009 at 6:28 AM, VoltTerra <nginx-forum@nginx.us> wrote:
>>>
>>> During disscusion in russian mailing list we found some problems with installation on FreeBSD:
>>> 1) If you try to "make install" it fails, while "gmake install" works fine.

This *might* work,

ac/fpm_build.m4: 27:
dnl Set install target and select SAPI
- INSTALL_IT=""
+ INSTALL_IT=":"

Apply the change before running "generate-fpm-patch.sh".

The contents of INSTALL_IT variable is substituted for
$(INSTALL_IT) in the Makefile. So i'm guessing that BSD make is
erroring out if $(INSTALL_IT) is an empty string.

":" means no-op (do nothing) in the bourne shell.
If that didn't work then perhaps something else like:

INSTALL_IT="echo \"\""

or
INSTALL_IT="ls"

Unfortunately I cannot test because no freebsd. If somebody
experiencing these problems can reproduce the error, and try the fix?
Then we can go ahead and include it with the other changes.


> gnu make is different from bsd and solaris make.
>
> And yes, gmake is also needed on solaris.

Is it the same make error on Solaris? (below)

Installing PHP SAPI module: fpm
:No such file or directory
*** Error code 1

Stop in /tmp/php-5.3.0/fpm-build.


Or is the Solaris make error different to the freebsd make error?
Again, we are happy to look at patches for these other (non-linux)
unix OS.

Best regards,

dreamcat4
dreamcat4@gmail.com
Re: installation php-fpm 0.6-5.3.0 on FreeBSD 7.2 (BUGS)
October 01, 2009 06:02AM
On Thu, Oct 1, 2009 at 3:42 PM, dreamcat four <dreamcat4@gmail.com> wrote:
>
>> On Thu, Oct 1, 2009 at 2:26 PM, dreamcat four <dreamcat4@gmail.com> wrote:
>>>
>>> On Thu, Oct 1, 2009 at 6:28 AM, VoltTerra <nginx-forum@nginx.us> wrote:
>>>>
>>>> During disscusion in russian mailing list we found some problems with installation on FreeBSD:
>>>> 1) If you try to "make install" it fails, while "gmake install" works fine.
>
> This *might* work,
>
> ac/fpm_build.m4: 27:
> dnl Set install target and select SAPI
> - INSTALL_IT=""
> + INSTALL_IT=":"
>
> Apply the change before running "generate-fpm-patch.sh".
>
> The contents of INSTALL_IT variable is substituted for
> $(INSTALL_IT) in the Makefile. So i'm guessing that BSD make is
> erroring out if $(INSTALL_IT) is an empty string.
>
> ":" means no-op (do nothing) in the bourne shell.
> If that didn't work then perhaps something else like:
>
> INSTALL_IT="echo \"\""
>
> or
> INSTALL_IT="ls"
>
> Unfortunately I cannot test because no freebsd. If somebody
> experiencing these problems can reproduce the error, and try the fix?
> Then we can go ahead and include it with the other changes.
>

yes it works (no error)

>
>> gnu make is different from bsd and solaris make.
>>
>> And yes, gmake is also needed on solaris.
>
> Is it the same make error on Solaris? (below)
>
> Installing PHP SAPI module:       fpm
> :No such file or directory
> *** Error code 1
>
> Stop in /tmp/php-5.3.0/fpm-build.
>
>
> Or is the Solaris make error different to the freebsd make error?
> Again, we are happy to look at patches for these other (non-linux)
> unix OS.
>
> Best regards,
>
> dreamcat4
> dreamcat4@gmail.com
>

I don't have the machine anymore :(
and that was from few months ago anyway.

--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Re: installation php-fpm 0.6-5.3.0 on FreeBSD 7.2 (BUGS)
October 01, 2009 12:56PM
I have a FreeBSD 7 machine I can test compilation on if needed.

On Thu, Oct 1, 2009 at 3:00 AM, Edho P Arief <edhoprima@gmail.com> wrote:
>
> On Thu, Oct 1, 2009 at 3:42 PM, dreamcat four <dreamcat4@gmail.com> wrote:
>>
>>> On Thu, Oct 1, 2009 at 2:26 PM, dreamcat four <dreamcat4@gmail.com> wrote:
>>>>
>>>> On Thu, Oct 1, 2009 at 6:28 AM, VoltTerra <nginx-forum@nginx.us> wrote:
>>>>>
>>>>> During disscusion in russian mailing list we found some problems with installation on FreeBSD:
>>>>> 1) If you try to "make install" it fails, while "gmake install" works fine.
>>
>> This *might* work,
>>
>> ac/fpm_build.m4: 27:
>> dnl Set install target and select SAPI
>> - INSTALL_IT=""
>> + INSTALL_IT=":"
>>
>> Apply the change before running "generate-fpm-patch.sh".
>>
>> The contents of INSTALL_IT variable is substituted for
>> $(INSTALL_IT) in the Makefile. So i'm guessing that BSD make is
>> erroring out if $(INSTALL_IT) is an empty string.
>>
>> ":" means no-op (do nothing) in the bourne shell.
>> If that didn't work then perhaps something else like:
>>
>> INSTALL_IT="echo \"\""
>>
>> or
>> INSTALL_IT="ls"
>>
>> Unfortunately I cannot test because no freebsd. If somebody
>> experiencing these problems can reproduce the error, and try the fix?
>> Then we can go ahead and include it with the other changes.
>>
>
> yes it works (no error)
>
>>
>>> gnu make is different from bsd and solaris make.
>>>
>>> And yes, gmake is also needed on solaris.
>>
>> Is it the same make error on Solaris? (below)
>>
>> Installing PHP SAPI module:       fpm
>> :No such file or directory
>> *** Error code 1
>>
>> Stop in /tmp/php-5.3.0/fpm-build.
>>
>>
>> Or is the Solaris make error different to the freebsd make error?
>> Again, we are happy to look at patches for these other (non-linux)
>> unix OS.
>>
>> Best regards,
>>
>> dreamcat4
>> dreamcat4@gmail.com
>>
>
> I don't have the machine anymore :(
> and that was from few months ago anyway.
>
> --
> O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
>
Re: installation php-fpm 0.6-5.3.0 on FreeBSD 7.2 (BUGS)
October 02, 2009 03:50PM
Done.
#439946 installation php-fpm 0.6-5.3.0 on FreeBSD 7.2 (BUGS)
https://launchpad.net/php-fpm/master/0.6


Best regards,

dreamcat4
dreamcat4@gmail.com
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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