Click to See Complete Forum and Search --> : installing php4.3.1 with gd on redhat linux 8.0


majik
02-26-2003, 10:00 PM
Being new to linux, I am using the guide found here: http://www.linuxguruz.org/z.php?id=322

I first used the configuration string:

./configure \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/conf \
--enable-versioning \
--with-mysql=/usr/local \
--enable-ftp \
--with-gd=/usr/local/gd-2.0.11 \
--with-zlib \
--enable-bcmath \
--disable-debug \
--enable-memory-limit=yes \
--enable-track-vars


GD is giving me a problem. Using --with-gd=/usr/local/gd-2.0.11 stopped at some point in the configuration, say point A, with the error:

configure: error: Unable to find libgd.(a|so) anywhere under /usr/local/gd-2.0.11


This file is found in /usr/local/lib/. I was recommended to add /usr/local/lib to the file /etc/ld.so.conf, then run ldconfig, then try again but use /usr/local/ instead of /usr/local/gd-2.0.11. So I did...

Using --with-gd=/usr/local stopped at point B with the error:

Cannot find header files under /usr/local


When I tried using --with-gd=/usr/local/lib, it stopped somewhere between point A and point B (actually, in the line in lieu of the original error - in point A) and gave me the error:

configure: error: Unable to find gd.h anywhere under /usr/local/lib


The file gd.h is not found in /usr/local/lib, but is found in /usr/local/gd-2.0.11/

Just because --with-gd=/usr/local seems to go futher in the configuration I assumed this is the right way to go, but I may be wrong. Maybe its easier to somehow get it to find the gd.h when using --with-gd=/usr/local/lib ?? What am I doing wrong? What should I modify? Any suggestions?

majik
02-27-2003, 12:24 AM
Don't know why I didn't try this earlier, but i tried running ./configure without any --with-gd and it still returned with the error:


configure: error: Cannot find header files under /usr/local


Which of course, would mean that GD has nothing to do with the problem I'm having.

After staring at my configuration string, I noticed that MySQL is the only one using /usr/local, so I excluded MySQL from the configuration string and the configuration went through all the way without errors.

Now to fix the MySQL error :(

Any suggestions?

majik
02-27-2003, 01:34 AM
i tried --with-mysql=/usr instead of the original --with-mysql=/usr/local and the configuration went all the way through without complaining. "make" worked as well, as did "make install" so now made sure I had AddType application/x-httpd-php .php on the httpd.conf file, which I did. I created a .php file with text inside and outside the php tags, opened up mozilla, pointed my browser to http://localhost , and the page loaded but w/out the php stuff icon_frown.gif

This is enough for me for tonight, I'll be nitpicking it tomrrow. :confused:

Suggestions would be appreciated :D