1 首先是坚持libxml2出问题,提示如下:

checking for xml2-config path... /home/www/thirdlib/libxml2/bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed. Please check the config.log for details.

解决如下:

shell > yum -y install libxml2-devel

把安装命令中的 --with-libxml-dir=/home/www/thirdlib/libxml2 改成 --with-libxml-dir=/usr  ,因为默认把libxml2-devel安装在了/user里了

2 没安装xpm,重新安装 yum -y install ....

3 报错 configure: error: freetype.h not found.

yum install freetype-devel

下面是安装命令行

./configure --prefix=/home/www/php

--with-config-file-path=/home/www/php/etc

--with-mysql=/home/www/mysql

--with-mysqli=/home/www/mysql/bin/mysql_config

--with-zlib=/home/www/thirdlib/zlib

--with-libxml-dir=/usr --with-pcre-dir=/home/www/thirdlib/pcre

--with-jpeg-dir=/home/www/thirdlib/jpeg

--with-png-dir=/home/www/thirdlib/libpng

--with-freetype-dir=/home/www/thirdlib/freetype

--with-gd=/home/www/thirdlib/gd2

--with-openssl=/home/www/thirdlib/openssl

--with-mcrypt=/home/www/thirdlib/libmcrypt

--with-mhash=/home/www/thirdlib/mhash

--with-xpm-dir=/usr/lib64

--enable-fpm

--enable-mbstring

--enable-xml

--enable-soap

--enable-sockets

--enable-zip

--without-sqlite3

--without-pear

--without-pdo-sqlite

--without-cdb

最终安装成功的命令行:

./configure --prefix=/home/www/php --with-config-file-path=/home/www/php/etc --with-mysql=/home/www/mysql --with-mysqli=/home/www/mysql/bin/mysql_config --with-zlib=/home/www/thirdlib/zlib --with-libxml-dir=/usr --with-pcre-dir=/home/www/thirdlib/pcre --with-jpeg-dir=/home/www/thirdlib/jpeg --with-png-dir=/home/www/thirdlib/libpng --with-freetype-dir=/home/www/thirdlib/freetype --with-gd=/home/www/thirdlib/gd2 --with-openssl=/home/www/thirdlib/openssl --with-mcrypt=/home/www/thirdlib/libmcrypt --with-mhash=/home/www/thirdlib/mhash --with-xpm-dir=/usr/lib64 --enable-fpm --enable-mbstring --enable-xml --enable-soap --enable-sockets --enable-zip --without-sqlite3 --without-pear --without-pdo-sqlite --without-cdb

4 安装扩展库curl提示没有 autoconf, yum install autoconf后解决

5 安装curl扩展

单独一节讨论

6 安装ssh2  库ssh2-0.11.0.tgz

yum install libssh2-devel

./configure --with-php-config=/home/www/php/bin/php-config

phpize。。。

最新文章

  1. cmd命令汇总
  2. Docker dockerfile创建Eclipse镜像初试
  3. 论文阅读(Xiang Bai——【CVPR2015】Symmetry-Based Text Line Detection in Natural Scenes)
  4. maven 使用国内代理
  5. 不要浪费人生的每一天 ——Dropbox创始人在麻省理工的演讲 z
  6. struts2 JS获取上传文件的绝对路径,兼容IE和FF
  7. BZOJ 3223: Tyvj 1729 文艺平衡树(splay)
  8. 前端笔试题2 JS部分
  9. UVa 11621 - Small Factors
  10. Redis中的master-slave&sentinel
  11. Oracle安装oraInventory问题
  12. 【Java学习笔记之五】java数组详解
  13. (二)Linux下的crontab定时执行任务命令详解
  14. idea开发maven项目热加载
  15. Nginx在CentOS7下的安装
  16. tomcat 闪退问题排查
  17. CentOS 7.3 上安装docker
  18. stm32复位引脚NRST
  19. loki grafana 团队开源的,类似Prometheus 的log 系统
  20. delphi 连接oracle对接代码

热门文章

  1. javaweb(十五)——JSP基础语法
  2. PostFix使用dovecot支持POP3/IMAP收信
  3. 接口测试工具Postman接口测试图文教程
  4. phpldapadmin具体设置
  5. 在Office 365 的如何给管理员赋予查看所有人邮箱的权限的Powershell
  6. [C++] Solve "No source available for main()" error when debugging on Eclipse
  7. Live Archive 训练题
  8. Scrum立会报告+燃尽图(十一月十九日总第二十七次):功能开发与修复上一阶段bug
  9. 互评Alpha版本——可以低头,但没必要——取件帮
  10. PSP阶段和WBS