MAC下编译PHP5.5.7问题:configure: error: freetype.h not found.
来源:互联网 发布:php sleep 和 usleep 编辑:程序博客网 时间:2024/04/26 23:30
执行configura时提示
configure: error: freetype.h not found.
freetype明明是使用brew安装了的。也可以查询到这个文件
stk-tianwen:freetype2 hufeiyan$ ls /usr/local/include/freetype2/freetype.h
/usr/local/include/freetype2/freetype.h
stk-tianwen:freetype2 hufeiyan$
搞了半天都通不过。
后来想到搜了一下配置文件
stk-tianwen:php-5.5.7 hufeiyan$ cat configure |grep freetype.h
if test -f "$i/include/freetype2/freetype/freetype.h"; then
as_fn_error $? "freetype.h not found." "$LINENO" 5
if test -f "$i/include/freetype2/freetype/freetype.h"; then
as_fn_error $? "freetype.h not found." "$LINENO" 5
stk-tianwen:php-5.5.7 hufeiyan$
原来他们的路径处理不同,brew安装后头文件路径为/usr/local/include/freetype2/,PHP需要的路径为/include/freetype2/freetype/
PHP认为还要/usr/local/include/freetype2/下面有一个freetype目录
执行命令
ln -s /usr/local/Cellar/freetype/2.5.2/include/freetype2/ /usr/local/Cellar/freetype/2.5.2/include/freetype2/freetype
创建一个链接后,配置通过。
最终配置成功的命令:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-freetype-dir=/usr/local/opt/freetype --with-libxml-dir=/usr/local/opt/libxml2/ --with-png-dir=/usr/local/opt/libpng/ --with-jpeg-dir=/usr/local/opt/jpeg --with-gd=/usr/local/ --with-zlib-dir=/usr/local/zlib/ --with-mcrypt=/usr/local/opt/mcrypt/ --with-mysql=/usr/local/mysql --enable-soap --enable-mbstring=all --enable-pdo --with-pdo-mysql=/usr/local/mysql --with-pgsql=/Applications/Postgres93.app/Contents/MacOS --enable-opcache=no
configure: error: freetype.h not found.
freetype明明是使用brew安装了的。也可以查询到这个文件
stk-tianwen:freetype2 hufeiyan$ ls /usr/local/include/freetype2/freetype.h
/usr/local/include/freetype2/freetype.h
stk-tianwen:freetype2 hufeiyan$
搞了半天都通不过。
后来想到搜了一下配置文件
stk-tianwen:php-5.5.7 hufeiyan$ cat configure |grep freetype.h
if test -f "$i/include/freetype2/freetype/freetype.h"; then
as_fn_error $? "freetype.h not found." "$LINENO" 5
if test -f "$i/include/freetype2/freetype/freetype.h"; then
as_fn_error $? "freetype.h not found." "$LINENO" 5
stk-tianwen:php-5.5.7 hufeiyan$
原来他们的路径处理不同,brew安装后头文件路径为/usr/local/include/freetype2/,PHP需要的路径为/include/freetype2/freetype/
PHP认为还要/usr/local/include/freetype2/下面有一个freetype目录
执行命令
ln -s /usr/local/Cellar/freetype/2.5.2/include/freetype2/ /usr/local/Cellar/freetype/2.5.2/include/freetype2/freetype
创建一个链接后,配置通过。
最终配置成功的命令:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-freetype-dir=/usr/local/opt/freetype --with-libxml-dir=/usr/local/opt/libxml2/ --with-png-dir=/usr/local/opt/libpng/ --with-jpeg-dir=/usr/local/opt/jpeg --with-gd=/usr/local/ --with-zlib-dir=/usr/local/zlib/ --with-mcrypt=/usr/local/opt/mcrypt/ --with-mysql=/usr/local/mysql --enable-soap --enable-mbstring=all --enable-pdo --with-pdo-mysql=/usr/local/mysql --with-pgsql=/Applications/Postgres93.app/Contents/MacOS --enable-opcache=no
0 0
- MAC下编译PHP5.5.7问题:configure: error: freetype.h not found.
- MAC下编译PHP5.5.7问题:configure: error: freetype.h not found.
- ubuntu 下编译PHP5.5.7问题:configure: error: freetype.h not found.
- Configure: error: freetype.h not found
- ubuntu 下编译phpphp-5.6.17出错“configure: error: mcrypt.h not found.”
- 问题:PHP编译时,configure:error:xml2-config not found
- 编译Apache出现的问题:configure: error: APR not found .
- ffmpeg freetype not found 编译问题
- ffmpeg freetype not found 编译问题
- Centos6.5编译php报错:configure: error: mcrypt.h not found. Please reinstall libmcrypt.
- 解决php编译报错configure: error: mcrypt.h not found. Please reinstall libmcrypt.
- 编译安装php报错PHP configure: error: mcrypt.h not found. Please reinstall libmcrypt. 解决办法
- configure: error: FreeType development files not found. Fonts will not be built
- mac下给php编译openssl扩展报错 fatal error: 'openssl/evp.h' file not found
- configure: error: mcrypt.h not found. Please reinstall libmcrypt.
- configure: error: png.h not found.错误的解决方法
- Linux下安装过程中编译PHP时报错:configure: error: libjpeg.(a|so) not found
- Linux下安装过程中编译PHP时报错:configure: error: libjpeg.(a|so) not found
- Session和作用域
- STM32F103 输入捕获
- 预编译命令中的#号的作用
- 开放定址法演示
- 一点关于编译器不同优化级别的比较
- MAC下编译PHP5.5.7问题:configure: error: freetype.h not found.
- 黑马程序员-day02-Java基础语法
- 新建项目总是产生一个appcompat_v7和fragment_main.xml
- redis 清空
- 不用Cygwin,不用命令行,Eclipse编译NDK
- 高考战争在即 错在谁?
- ORACLE REDO--《深入浅出ORACLE第六章》
- 黑马程序员-day03-Java基础语法(函数)
- android:descendantFocusability用法简析 ListView 监听问题