Saturday 15 February 2014

Configure php 5.3 fail with error : freetype.h not found (but libfreetype6-dev is installed) -



Configure php 5.3 fail with error : freetype.h not found (but libfreetype6-dev is installed) -

i have configured php next command:

./configure \ --prefix=/opt/phpfcgi-5.3.28 \ --with-pdo-pgsql \ --with-zlib-dir \ --with-freetype-dir=/usr/include/freetype2 \ --with-libpng-dir=/usr/include/libpng \ --with-xpm-dir=/usr \ --enable-mbstring \ls \ --with-libxml-dir=/usr \ --enable-soap \ --enable-calendar \ --with-curl \ --with-mcrypt \ --with-zlib \ --with-gd \ --with-pgsql \ --disable-rpath \ --enable-inline-optimization \ --with-bz2 \ --with-zlib \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-pcntl \ --enable-mbregex \ --with-mhash \ --enable-zip \ --with-pcre-regex \ --with-mysql \ --with-mysql-dir=/etc/mysql/ \ --with-pdo-mysql \ --with-mysqli \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --enable-gd-native-ttf \ --with-openssl \ --with-libdir=/lib/x86_64-linux-gnu \ --enable-ftp \ --with-kerberos \ --with-gettext \ --enable-cgi \ --with-fpm-user=www-data \ --with-fpm-group=www-data

but if seek compile, got error-message:

configure: error: freetype.h not found

if got message, if installed libfreetype6-dev, seek this:

mkdir /usr/include/freetype2/freetype ln -s /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h

after this, .configure again.

additional hint: systems have utilize /usr/local/include....

php compiler-errors

No comments:

Post a Comment