Re: php-gtk2.so problems
| From: | Marc Quinton | Date: | Tue, 06 Feb 2007 09:59:44 +0000 |
| Subject: | Re: php-gtk2.so problems | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-7661@lists.php.net to get a copy of this message | ||
On 2/5/07, JTyrrell <jtyrrell_@hotmail.com> wrote:
Hi, Ive installed php-gtk 2.0.0 alpha on Red Hat Enterprise Linux 4 but when I try running any scripts it fails when trying to execute class_exists('gtk'). The hello world example suggests loading php-gtk2 in my php.ini. I'm running PHP 5.2.0 with CLI and php -i shows I'm using the correct php.ini file. I've loaded the module in php.ini and the module is in the correct directory but it still makes no difference. There was an issue when installing php-gtk... regardless of which directory i set to install the libraries and modules to, it always installed php_gtk2.so to /home/jamest/apache/php/bin/php/extensions/no-debug-non-zts-10060613. The extensions_dir in the php.ini points to /home/jamest/apache/modules. Ive made pointers to the module in the modules directory as well as the lib directory where the other modules (for glib, pango, gtk+ etc...) are stored which I think should solve that problem. If thats not the case does anyone know how to solve this. If that should be fine does anyone know what else could be the problem?I have build php-gtk from scratch with garnome environment on a WhiteBox 3.0 (nearly a RedHat distro) without user admin privileges. It works fine for me. You could have a look a strace command ; here is important part for me (just where php-gtk lib is loaded) : lstat64("/local/user/usr/stow/php-5.1.4/lib/php.ini", {st_mode=S_IFREG|0644, st_size=121, ...}) = 0
ioctl(3, TCGETS, 0xbfff9398) = -1 ENOTTY (Inappropriateioctl for device) fstat64(3, {st_mode=S_IFREG|0644, st_size=121, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb73e9000 read(3, "\n\nextension=php_gtk2.so\n; extens"..., 8192) = 121
read(3, "", 4096) = 0 read(3, "", 8192) = 0 close(3) = 0 munmap(0xb73e9000, 4096) = 0 brk(0) = 0x85a1000 brk(0x85c2000) = 0x85c2000futex(0x91bfd0, FUTEX_WAKE, 2147483647) = 0 open("/local/usr/stow/php-5.1.4/lib/php/extensions/no-debug-non-zts-20050922/php_gtk2.so", O_RDONLY) = 3 you should have this to. If not try to findout why. * php -i shows informations about extensions php-gtk GTK+ support => enabled GTK+ v => 2.6.4 Directive => Local Value => Master Value php-gtk.codepage => iso-8859-1 => iso-8859-1 php-gtk.extensions => no value => no value * php -i | grep 'Configuration File' : which configuration file is effective,