Re: runtime error on new installation
| From: | franc | Date: | Sun, 08 Sep 2002 08:04:41 +0000 |
| Subject: | Re: runtime error on new installation | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2400@lists.php.net to get a copy of this message | ||
"Mike Payson" <mpayson@dawgdayz.com> ha scritto nel messaggio
news:3D7B012A.2080406@dawgdayz.com...
> I just installed php-gtk. Everything went fine, no errors were reported.
> However, I am unable to execute scripts:
>
> mike@bucky test $ php -q gtk.php
> <br />
> <b>Warning</b>: Unable to load dynamic library './php_gtk.so' -
> ./php_gtk.so: cannot open shared object file: No such file or directory
> in <b>/home/mike/sources/php-gtk-0.5.1/test/gtk.php</b> on line
> <b>8</b><br />
> <br />
> <b>Fatal error</b>: Undefined class name 'gtk' in
> <b>/home/mike/sources/php-gtk-0.5.1/test/gtk.php</b> on line
> <b>2661</b><br />
>
> I have tried both 0.51 and CVS with the same result. I also get the same
> error if I specify the full path to the library (Unable to load dynamic
> library './/usr/lib/php/extensions/no-debug-non-zts-20020429/php_gtk.so').
>
> Any suggestions?
>
Put php.ini in the right place. See the output of "php -i" to find where php
looks for it.
Edit php.ini. Find a line like this:
extension_dir=
and put there the path to the php_gtk extension. Then php should find it.
regards
Francesco