NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP-GTK module error

Ben Sgro (sk) skyline at publicmine.com
Sun Oct 1 22:10:51 EDT 2006


Hey all,

Thanks Jon. I am adding GTK to an existing PHP installation. It appears php 
was compiled with '--with-gd=shared'.
The only module that fails to load is the gtk one.

Also, the extension_dir is being correctly set.

Any other ideas?

Thanks, Ben

----- Original Message ----- 
From: "Jon Baer" <jonbaer at jonbaer.com>
To: "NYPHP Talk" <talk at lists.nyphp.org>
Sent: Sunday, October 01, 2006 9:17 PM
Subject: Re: [nycphp-talk] PHP-GTK module error


(guess) Try something like "php -m | grep gd" to see if you are
loading gd.so as well?

Its making a reference to a function in GD that it can't find (either
lib path is wrong or something else), or may need to compile PHP
again with --with-gd=/path/to/gd

And probably make sure its getting loading via extension_dir first
before php_gtk2.

- Jon

On Oct 1, 2006, at 7:32 PM, Ben Sgro (sk) wrote:

> Hello All,
>
> I've just installed GTK from source, following these directions:
> http://gtk.php.net/manual/en/tutorials.installation.linux.php
> $ ./buildconf
> $ ./configure
> $ make
> $ make install
> Everything built find. I then added php_gtk2.so module to the
> extension's in
> php.ini, restarted apache.
>
> I ran
> $ php -m | grep php-gtk
> and got ...Unable to load dynamic library,
> '/usr/lib/php/modules/php_gtk2.so'....undefine symbol:
> phpi_get_le_gd in
> Unknown on line 0...
>
> Well, looks pretty obvious an error in the .c code. I've done
> apache module
> development in the past, and the 'Unknown' could point to c code.
>
> Anyways, I've done some goggle searching..nothing to helpful. So
> does anyone
> have any tips or work arounds?
>
> Thanks, Ben
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php

_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php





More information about the talk mailing list