php 跑buth,配置php 5.3錯誤:freetype。未找到(但已安裝libfreetype6-dev)

I have configured php with the following command:

我已經使用以下命令配置了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

But if I try to compile, I got the Error-Message:

但是如果我試圖編譯,我得到了錯誤信息:

configure: error: freetype.h not found

配置:錯誤:freetype。h未找到

1 个解决方案

#1

37

If you got that message, even if you installed libfreetype6-dev, then try this:

如果您得到了這個消息,即使您安裝了libfreetype6-dev,那么嘗試以下方法:

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....

額外提示:某些系統必須使用/usr/local/include ....

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值