[nycphp-talk] PHP-GTK module error
Jon Baer
jonbaer at jonbaer.com
Mon Oct 2 08:48:18 EDT 2006
So both extentions were compiled w/ =shared and both are loading in
via php.ini to extension_dir and in the ~same~ directory?
(guess) Im not sure if this matters anymore but where does your (env)
LD_LIBRARY_PATH point to? Probably would not hurt to tack on your
extension_dir @ the beginning.
Sorry not much help, but have toyed w/ PHP-GTK in the past ...
- Jon
On Oct 1, 2006, at 10:10 PM, Ben Sgro (sk) wrote:
> 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
>
>
> _______________________________________________
> 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