Click to See Complete Forum and Search --> : Solved gdImageCreateFromGif error on compile


Anon
09-27-2000, 08:19 PM
I upgraded from Redhat 6.2 to Redhat 7.0 today and got that error when I tried to install PHP4.0.2. After messing around a long time, I just deleted the php-4.0.2 directory that I installed from, untarred it again and re-ran it and it worked.

Anon
01-10-2001, 04:06 PM
I struggled with this problem for quite a while until I finally figured it out. The problem in my case, and I think this is true for many people, is that I had the RedHat (6.2) gd-devel package installed, as well as the 1.8.3 gd library that I compiled. Even though I specified --with-gd=/usr/local, which points to the one I compiled, the configure script queried the _RedHat_ library and therefore thought that it had gdImageCreateFromGif (and didn't have the Png and Jpeg variants, which are in the lib I compiled). But in the make cycle, the one I compiled is used and, behold, gdImageCreateFromGif was missing.

The solution was simply to remove the RedHat gd development package (rpm -e gd-devel). This left only the libgd.a that I compiled, and configure correctly determined the available gd functions.

I hope this helps. I read a ton of posts and really thrashed on this until I figured it out.