Re: Linux install
| From: | Markus Fritsche | Date: | Sun, 20 May 2001 08:20:39 +0000 |
| Subject: | Re: Linux install | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1871@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Sonntag, 20. Mai 2001 09:47 schrieb Adam Rambousek:
> download php-4.0.5 source code
> download php-gtk-0.0.4 source code
> cd /usr/local/src
> gunzip php-4.0.5.tar.gz
> tar xvf php-4.0.5.tar
= tar -xzvf php-4.0.5.tar.gz
> gunzip php-gtk-0.0.4.tar.gz
> tar xvf php-gtk-0.0.4.tar.gz
= tar -xzvf php-gtk-0.0.4.tar.gz
> cd php-4.0.5
> ./configure --with-mysql
> make
> make install
Maybe you have to add "export PATH=$PATH:/usr/local/bin"
since it's not in path for root in all distributions.
> cd ../php-gtk-0.0.4
> phpize
> ./configure
I get:
[...]
checking whether to enable PHP GTK+ support... yes, shared
./configure: line 1746: syntax error near unexpected token
`PHP_ADD_INCLUDE($n)'
./configure: line 1746: ` PHP_ADD_INCLUDE($n)'
Since I'm don't know much about makefiles and configure files, I
commented the non-working parts out (they were):
PHP_ADD_INCLUDE($n),
PHP_ADD_LIBRARY($n,, PHP_GTK_SHARED_LIBADD)
and
PHP_ADD_LIBPATH($n, PHP_GTK_SHARED_LIBADD)
and configured the rest manually (includes and libraries for gtk, glib
and gdk).
> make
> make install
> php -q test/gtk.php
Markus
- --
SIGSTOP
http://www.planet-archer.de/ (german)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7B35eZxa2yYxHjD8RAsfAAKC5F1Da53/40wTBwYuxR5RAzADdzACgnBn7
U0k4ozIbEvIsdKnEkQsoQ04=
=zlGl
-----END PGP SIGNATURE-----