Re: [Fwd: PHP-GTK 2.0.1 / Suggestion at configure script]

[email protected] (Andrei Zmievski)
Newsgroups php.gtk.dev
Message-ID <[email protected]>
Do we want to do this? When was --php-binary added to php-config?

-Andrei

Andrei Zmievski wrote:
> 
> ------------------------------------------------------------------------
> 
> Subject:
> PHP-GTK 2.0.1 / Suggestion at configure script
> From:
> Rubens Takiguti Ribeiro <[email protected]>
> Date:
> Mon, 1 Sep 2008 15:39:14 -0300
> To:
> [email protected]
> 
> To:
> [email protected]
> 
> 
> Hi,
> 
> I'm a programmer and I have a suggestion (or a question) about the
> configure script of PHP-GTK 2.0.1.
> 
> I receive the message "Could not locate PHP executable" after try to
> install PHP-GTK on Fedora Linux 7 / Apache 2.2.8 / PHP 5.2.6.
> 
> This message is in configure script, in my case, at line 3937. I saw that
> the line 3917 has this test:
> 
> "if test -x $PHP_PREFIX/bin/php; then ..."
> 
> In fact it was checking if my PHP executable is in default path, but, in my
> case, it is at "/usr/bin/php" (I've changed in PHP compilation). I don't
> understand why it could not use "php-config --php-binary" to determine the
> PHP executable location.
> 
> I could create a symbolic link in "$PHP_PREFIX/bin/php", but I change the
> configure script to do this test:
> "
>   PHP=`$PHP_CONFIG --php-binary`
>   if [ -x "$PHP" -o -x "$PHP_PREFIX/bin/php" ]; then
> ...
>     if [ -x "$PHP_PREFIX/bin/php" ]; then
>       PHP=$PHP_PREFIX/bin/php
>     fi
> ...
> "
> 
> And it works. The code is not so good, but the suggestion is to use
> "php-config" not only to determine PHP_PREFIX, but the PHP executable too.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.