Because jpgraph is used in PHP, TTF is required. Install freetype1.x.
Freetype1.3.1 cannot be compiled. The error is as follows.
Ftdump. C: 172: 1: pasting "." and "glyph_object" does not give a valid preprocessing token
Ftdump. C: 182: 1: pasting "." and "first_instance" does not give a valid preprocessing token
Ftdump. C: 191: 1: pasting "." and "second_instance" does not give a valid preprocessing token
Ftdump. C: 201: 1: pasting "." and "face_object" does not give a valid preprocessing token
Ftdump. C: 202: 1: pasting "." and "glyph_object" does not give a valid preprocessing token
Ftdump. C: 203: 1: pasting "." and "second_instance" does not give a valid preprocessing token
Ftdump. C: 863: 1: pasting "." and "initial_overhead" does not give a valid preprocessing token
Ftdump. C: 882: 1: pasting "." and "face_object" does not give a valid preprocessing token
Make [1]: *** [ftdump. O] Error 1
Make [1]: Leaving directory/software/freetype-1.3.1/Test'
Make: *** [tttest] Error 2
Read the documentation Documentation on FreeType website.
Modify makefile. In:
1. Remove tttest from all: ttlib tttest ttpo.
2. Delete
Install:
CD $ (ftlibdir); $ (make)-F $ (makefile) uninstall
CD $ (fttestdir); $ (make)-F $ (makefile) uninstall
CD $ (ftpodir); $ (make) uninstall
CD $ (fttestdir); $ (make)-F $ (makefile) uninstall
#./Configure -- prefix =/data/apps/freetype1
# Make
# Make install
Note that if GD is compiled in PHP, you must add -- With-FreeType to re-compile GD. Otherwise, FreeType support cannot be obtained in PHP.