Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Unable to load dynamic library '/usr/lib/php4/20050606/gd.so

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
sYs^

Unable to load dynamic library '/usr/lib/php4/20050606/gd.so

#1 Post by sYs^ »

Hi,

I'd like to enable GD support on my server, I use Apache/2.0.55 (Debian) PHP/4.4.2-1+b1 mod_ssl/2.0.55 OpenSSL/0.9.8a. I have gd extension enabled in my php.ini but when I restart my apache it writes this to the error.log:

Code: Select all

[Sat Apr 22 18:24:09 2006] [notice] SIGHUP received.  Attempting to restart
PHP Warning:  mime_magic: type regex\t\tBEGIN[[:space:]]*[{]\tapplication/x-awk invalid in Unknown on line 0
[B]PHP Warning:  Unknown(): Unable to load dynamic library '/usr/lib/php4/20050606/gd.so' - /usr/lib/php4/20050606/gd.so: undefined symbol: gdImagePngCtx in Unknown on line 0[/B]
[Sat Apr 22 18:24:09 2006] [notice] Apache/2.0.55 (Debian) PHP/4.4.2-1+b1 mod_ssl/2.0.55 OpenSSL/0.9.8a configured -- resuming normal operations
Any ideas? Thank you in anticipation!

anaximander
Posts: 13
Joined: 2006-04-23 13:02

#2 Post by anaximander »

Your shared library is not being found because you haven't told Apache where to find it. If you have a read of man ld.so(8), ldconfig(8), you'll see there are a few ways to do this.
You could, for instance, put the library in a standard place. Or you could update your /etc/ld.so.conf adding the directory where your library is and run ldconfig.
Or set LD_LIBRARY_PATH in your Apache's environment.
I'd be inclined to put the library in /usr/local/lib and if necessary do the ld.so.conf thing.

Post Reply