Re: Question about running php-gtk.
| From: | Rich Payne | Date: | Thu, 13 Feb 2003 16:14:17 +0000 |
| Subject: | Re: Question about running php-gtk. | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3030@lists.php.net to get a copy of this message | ||
On Thu, 13 Feb 2003, bertrand de baenst wrote:
>
> Hello,
> I just discovered php-gtk, and I have some questions.
> I have php 4.1.2 installed on my machine, and just downloaded the last
> release of php-gtk (0.5.2). I've compiled it without any problems, but when
> I execute a small PHP script to load dynamically the librairy with :
>
> <?php
> if (!class_exists('gtk')) {
> dl('php_gtk.so');
> }
> ?>
>
> I have an error which I do not know how to resolv. If anyone could help me I
> would much obliged.
>
> Here is the dump Php gives me :
> X-Powered-By: PHP/4.1.2
> Content-type: text/html
>
> <br>
> <b>Warning</b>: php-gtk: Unable to initialize module
> Module compiled with debug=0, thread-safety=0 module API=20020429
> PHP compiled with debug=0, thread-safety=0 module API=20010901
> These options need to match
> in <b>/home/bertrand/profils/test-pgp-gtk/test.php</b> on line
> <b>3</b><br>
>
> >From what I understand the problem is that the two module API are not the
> same, But I cannot find a way to make the two API numbers the same.
Do you have two version of php installed? For example one in /usr/bin and
on in /usr/local/bin ? Make sure that php-gtk is being built and called
against the same version of php.
For example I have the debian php4 package installed that places
everything in /usr (/usr/bin /usr/include /usr/lib etc...etc..) however
I have a second version in /usr/local that I actually use for php-gtk
work. When I build php-gtk I make sure that /usr/local/bin is in my path
before /usr/bin.
Hope that helps.
Rich Payne
http://talisman.mv.com
rdp at talisman dot mv dot com