配置php 5.3失败与错误:freetype.h未找到(但libfreetype6-dev已安装) [英] Configure php 5.3 fail with error : freetype.h not found (but libfreetype6-dev is installed)
本文介绍了配置php 5.3失败与错误:freetype.h未找到(但libfreetype6-dev已安装)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已使用以下命令配置php:
./ 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
但是如果我尝试编译,我得到错误消息:
configure:error:freetype.h not found
解决方案即使您安装了 libfreetype6-dev ,也可以尝试以下操作:
mkdir / usr / include / freetype2 / freetype
ln -s /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h
此后,再次执行.configure。
其他提示:对于某些系统,您必须使用/ usr / 本地 / include ....
I have configured php with the following 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 I try to compile, I got the Error-Message:
configure: error: freetype.h not found
解决方案If you got that message, even if you installed libfreetype6-dev, then try this:
mkdir /usr/include/freetype2/freetype ln -s /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h
After this, do .configure again.
Additional hint: For some Systems you have to use /usr/local/include....
这篇关于配置php 5.3失败与错误:freetype.h未找到(但libfreetype6-dev已安装)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文