安装PHP模块时,配置那步出现个问题,是怎回事?
时间:2011-07-25
来源:互联网
安这步骤来配PHP
# ./configure \ //执行当前目录下软件自代的配置命令
> --prefix=/usr/local/php \ //设置PHP5 的安装路径
> --with-config-file-path=/usr/local/php/etc \ //指定PHP5配置文件存入的路径
> --with-apxs2=/usr/local/apache2/bin/apxs \ //告诉PHP查找Apache 2的地方
> --with-mysql=/usr/local/mysql/ \ //指定MySQL的安装目录
> --with-libxml-dir=/usr/local/libxml2/ \ //告诉PHP放置libxml2库的地方
> --with-png-dir=/usr/local/libpng/ \ //告诉PHP放置libpng库的地方
> --with-jpeg-dir=/usr/local/jpeg6/ \ //告诉PHP放置jpeg库的地方
> --with-freetype-dir=/usr/local/freetype/ \ //告诉PHP放置freetype库的地方
> --with-gd=/usr/local/gd2/ \ //告诉PHP放置gd库的地方
> --with-zlib-dir=/usr/local/zlib/ \ //告诉PHP放置zlib库的地方
> --with-mcrypt=/usr/local/libmcrypt/ \ //告诉PHP放置libmcrypt库的地方
> --with-mysqli=/usr/local/mysql/bin/mysql_config \ //变量激活新增加的MySQLi功能
> --enable-soap \ //变量激活SOAP和Web services支持
> --enable-mbstring=all \ //使多字节字符串支持
> --enable-sockets
最后出错如下:
f configure fails try --with-xpm-dir=<DIR>
checking for FT_New_Face in -lfreetype... yes
configure: error: Unable to find gd.h anywhere under /usr/local/gd2/
[root@localhost local]# make
make: *** 没有指明目标并且找不到 makefile。 停止。
# ./configure \ //执行当前目录下软件自代的配置命令
> --prefix=/usr/local/php \ //设置PHP5 的安装路径
> --with-config-file-path=/usr/local/php/etc \ //指定PHP5配置文件存入的路径
> --with-apxs2=/usr/local/apache2/bin/apxs \ //告诉PHP查找Apache 2的地方
> --with-mysql=/usr/local/mysql/ \ //指定MySQL的安装目录
> --with-libxml-dir=/usr/local/libxml2/ \ //告诉PHP放置libxml2库的地方
> --with-png-dir=/usr/local/libpng/ \ //告诉PHP放置libpng库的地方
> --with-jpeg-dir=/usr/local/jpeg6/ \ //告诉PHP放置jpeg库的地方
> --with-freetype-dir=/usr/local/freetype/ \ //告诉PHP放置freetype库的地方
> --with-gd=/usr/local/gd2/ \ //告诉PHP放置gd库的地方
> --with-zlib-dir=/usr/local/zlib/ \ //告诉PHP放置zlib库的地方
> --with-mcrypt=/usr/local/libmcrypt/ \ //告诉PHP放置libmcrypt库的地方
> --with-mysqli=/usr/local/mysql/bin/mysql_config \ //变量激活新增加的MySQLi功能
> --enable-soap \ //变量激活SOAP和Web services支持
> --enable-mbstring=all \ //使多字节字符串支持
> --enable-sockets
最后出错如下:
f configure fails try --with-xpm-dir=<DIR>
checking for FT_New_Face in -lfreetype... yes
configure: error: Unable to find gd.h anywhere under /usr/local/gd2/
[root@localhost local]# make
make: *** 没有指明目标并且找不到 makefile。 停止。
作者: sheng7wuyuan 发布时间: 2011-07-25
重新编译安装下gd2
作者: 李明 发布时间: 2011-07-26
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28