Tuesday, 19 January 2010

Compiling PHP versions >= 4.3.0 fails

You downloaded the latest PHP version with its built in GD library code and tried to compile it. All goes well until it fails with this nto so meaningful message:

In file included from gdft.c:37:
/usr/local/include/freetype2/freetype/ftglyph.h:104: parse error
before `FT_Library'

You consider crying, but then you remember that the Kieser.net guys know their stuff and maybe they have the answer? Well, you are in luck. This error normally means that your /usr/local/include directory has an old freetype subdirectory as well as the new freetype2 directory that contains both freetype 1 and 2 include files in it. The solution is simple:
mv /usr/local/include/freetype /usr/local/include/old.freetype
and try again! It should work now! ;-)

Honeypot: spam@kieser.net

No comments:

Post a Comment