Re: Install PHP GTK --with-php-config
| From: | Alan Knowles | Date: | Tue, 05 Feb 2002 09:32:32 +0000 |
| Subject: | Re: Install PHP GTK --with-php-config | ||
| References: | 1 2 3 4 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1126@lists.php.net to get a copy of this message | ||
this is what the configure script does
#if test -z "/usr/bin/php-config"; then echo "cant find php-config"; fi
I think -z is "is it exectutable" eg. permisions +x etc.
my guess is that php-config is not +x for the user you are building as... - but you should be pretty close now..
(remember configure is just a big bash script :)
regards
alan
Marcel Bariou wrote:
Hi Henning, I give you here more detail about my install process For the Install I don't take the CVS branch First a week ago I download php-4.1.1 and I install it : 1) as an apache module (with-apxs and so on..), it works 2) as a command line shell in /phpscript, it works Second, two days ago I download php-gtk.0.5.0 As all other I untar in my install directory which is /usr/local/xtra_targz When configure ask for --with-php-config, I make the assumption it asks for the the php-config file which is in the bin directory of my command-line PHP which is installed in the directory /phpscript The PHP installed as a command line is here : /phpscript/bin/php The php-config file is here : /phpscript/bin/php-configFrom the /usr/local/xtra_targz/php-gtk-0.5.0 I run buildconf (I have tocorrect some PATH in build.mk) it works. I put a symbolic link from /bin to /phpscript/bin When I run ./configure as : ./configure --prefix=/phpscript --with-php-config=/phpscript/bin/php-config each time inside the verbose messages of ./configure I have : ... checking for PHP-GTK support...yes, shared checking for gawk... gawk ./configure: php-config command not found checking for php in /bin ... found ..... And of course after that, the make fails... Have vou some idea, Thanks for your help ? Marcel ----- Original Message ----- From: Henning Sprang <henning@sprang.de> To: Marcel Bariou <bariou@brasnah.com> Cc: <php-gtk-general@lists.php.net> Sent: Monday, February 04, 2002 12:57 PM Subject: Re: [PHP-GTK] Install PHP GTK --with-php-configOn Sun, Feb 03, 2002 at 07:10:18PM +0100, Marcel Bariou wrote:untarPHP was previously installed as a command line script. In the directory /phpscript. I download the GTK.tar.gz in my install diirectory, Inot tested,and run ./buildconf with a right path for phpize. it works. When I start ./configure, tell me please the path of what I have to put with the option --with-php-config the path to which file ?i am just guessing now, i am not sure if i really understood you and it'sbut when ./configure aks for --with-php-config I would think otwants/needsthe path to the script "php-config" whichg is installed with php. it should normally be found in the same place as the php binary, which isnot ascript, but needed to _run_ scripts. this is really a difference! so php-script is not a correct label for the php binary, php-script isgenerallyused for scripts _written_ _in_ php. the executable file used to interpret those scripts written in php is gerenally called "the php binary" or "php executable". Just to let you know and prevent you from future misunderstandings. hth, henning -- Henning Sprang, henning@sprang.de, http://www.sprang.de/