gd for php5 under RH ES4

This is a discussion on gd for php5 under RH ES4 within the PHP General forums, part of the PHP Programming Forums category; I am trying to use the php gd library (for imagecreate, etc) with php5 under Red Hat ES4. I tried ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-11-2006
Doug Fulton
 
Posts: n/a
Default gd for php5 under RH ES4

I am trying to use the php gd library (for imagecreate, etc) with php5
under Red Hat ES4. I tried installing php-gd via webmin (which in turn,
I see, uses up2date), but get the following error in the apache error
log when restarting:
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php4/gd.so' - /usr/lib/php4/gd.so: undefined symbol:
empty_string in Unknown on line 0

I don't know if the problem is that php-gd is a php4 library or there is
something else that I need to install or do. I saw something about
php5-gd, but webmin/up2date can't find anything by this name.

I have searched for a bit on this without joy; any guidance is
appreciated. I am not a system administrator by training, but am a
longtime Unix programmer, so I can handle reasonably low level
instructions, if necessary. I did post this to a Red Hat list without
any reply so far.

Thanks in advance,
Doug
Reply With Quote
  #2 (permalink)  
Old 10-11-2006
Antony Dovgal
 
Posts: n/a
Default Re: [GD-DEVEL] gd for php5 under RH ES4

On 10/11/2006 10:36 PM, Doug Fulton wrote:
> I am trying to use the php gd library (for imagecreate, etc) with php5
> under Red Hat ES4. I tried installing php-gd via webmin (which in turn,
> I see, uses up2date), but get the following error in the apache error
> log when restarting:
> PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/lib/php4/gd.so' - /usr/lib/php4/gd.so: undefined symbol:
> empty_string in Unknown on line 0
>
> I don't know if the problem is that php-gd is a php4 library


Yes, gd.so apparently was built using headers from PHP4 or PHP5.0.x, this is the cause of your problem.

> or there is
> something else that I need to install or do. I saw something about
> php5-gd, but webmin/up2date can't find anything by this name.
>
> I have searched for a bit on this without joy; any guidance is
> appreciated. I am not a system administrator by training, but am a
> longtime Unix programmer, so I can handle reasonably low level
> instructions, if necessary. I did post this to a Red Hat list without
> any reply so far.



--
Wbr,
Antony Dovgal
Reply With Quote
  #3 (permalink)  
Old 10-11-2006
Richard Lynch
 
Posts: n/a
Default Re: [PHP] gd for php5 under RH ES4

On Wed, October 11, 2006 1:36 pm, Doug Fulton wrote:
> I am trying to use the php gd library (for imagecreate, etc) with php5
> under Red Hat ES4. I tried installing php-gd via webmin (which in
> turn,
> I see, uses up2date), but get the following error in the apache error
> log when restarting:
> PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/lib/php4/gd.so' - /usr/lib/php4/gd.so: undefined symbol:
> empty_string in Unknown on line 0
>
> I don't know if the problem is that php-gd is a php4 library or there
> is
> something else that I need to install or do. I saw something about
> php5-gd, but webmin/up2date can't find anything by this name.
>
> I have searched for a bit on this without joy; any guidance is
> appreciated. I am not a system administrator by training, but am a
> longtime Unix programmer, so I can handle reasonably low level
> instructions, if necessary. I did post this to a Red Hat list without
> any reply so far.


The way I see it, you have 2 choices:

#1. Convince webmin and/or up2date and/or RedHat to fix their broken
installer dependencies.

#2. Compile the PHP GD extension, and GD itself probably, from source.

Actually, you could dink around some more with up2date to be sure you
have GD itself installed first -- That might be the problem, and would
be trivial to fix.

There are 3 pieces to this puzzle that you must install and also match
up version-wise:
GD
PHP
PHP GD extension

--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:02 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0