Re: php-gtk2.so problems

From: Date: Tue, 06 Feb 2007 11:01:59 +0000
Subject: Re: php-gtk2.so problems
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7662@lists.php.net to get a copy of this message
I ran strace and it prints out execve(".hello.php", ["./hello.php"], [/* 42 vars */]) = 0 strace:exec: Exec format error Not an expert on these things but reading up it seems the module isnt compatible with my OS. I downloaded the alpha source from the downloads section of http://gtk.php.net/download.php and the .so suffix suggests its a linux module. I've just tried a completely new install using the linux cvs version and still get the same result from strace. Running php -i shows it is picking up the correct php.ini and php --version shows its picking up the correct php. I ran buildconfig with phpize and configure with php-config so its picking them up as well. php -i doesnt show any information on GTK+ though Marc Quinton-2 wrote: > > 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 (Inappropriate > ioctl 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) = 0x85c2000 > futex(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, > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- View this message in context: http://www.nabble.com/php-gtk2.so-problems-tf3174053.html#a8824135 Sent from the Php - GTK - General mailing list archive at Nabble.com.

« previous php.gtk.general (#7662) next »