Click to See Complete Forum and Search --> : can't link gd library to php 4.3.4 running on apache and linux.


ottis
05-30-2005, 05:02 PM
I downloaded and installed the gd library following the installation instructions found on boutell.com. It installed the files by default in /usr/local/lib and /usr/local/includes.

I'm using a debian based distribution called Knoppmyth that installs php and apache automatically. When I run phpinfo(), it tells me that it was compiled with gd support like so --with-gd=shared,/usr. I'm not exactly sure what "shared, /usr" means though. I'm assuming it means its looking for the gd library files in the /usr directory but I don't know why the word "shared" is there.

Then I went into the php.ini file and set the extension directory to the following: extension_dir= "/usr/local/lib"

Then under the Dynamic Extensions section, I set an extension to the following: extension=libgd.so

I thought that would be all that I would have to do to get it working but when I try to call the gd functions in php it doesn't recognize them still. I'm thinking it might have something to do with the path in the --with-gd option that was set when php was orginally compiled. I would think it should be the same at the extension_dir path in the php.ini file.

Does anyone know if I'm on the right track or if there is something I should be doing differently?