centos 6.5 web service模式 系统 安装php
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。。。
最新文章
- cmd命令汇总
- Docker dockerfile创建Eclipse镜像初试
- 论文阅读(Xiang Bai——【CVPR2015】Symmetry-Based Text Line Detection in Natural Scenes)
- maven 使用国内代理
- 不要浪费人生的每一天 ——Dropbox创始人在麻省理工的演讲 z
- struts2 JS获取上传文件的绝对路径,兼容IE和FF
- BZOJ 3223: Tyvj 1729 文艺平衡树(splay)
- 前端笔试题2 JS部分
- UVa 11621 - Small Factors
- Redis中的master-slave&;sentinel
- Oracle安装oraInventory问题
- 【Java学习笔记之五】java数组详解
- (二)Linux下的crontab定时执行任务命令详解
- idea开发maven项目热加载
- Nginx在CentOS7下的安装
- tomcat 闪退问题排查
- CentOS 7.3 上安装docker
- stm32复位引脚NRST
- loki grafana 团队开源的,类似Prometheus 的log 系统
- delphi 连接oracle对接代码
热门文章
- javaweb(十五)——JSP基础语法
- PostFix使用dovecot支持POP3/IMAP收信
- 接口测试工具Postman接口测试图文教程
- phpldapadmin具体设置
- 在Office 365 的如何给管理员赋予查看所有人邮箱的权限的Powershell
- [C++] Solve ";No source available for main()"; error when debugging on Eclipse
- Live Archive 训练题
- Scrum立会报告+燃尽图(十一月十九日总第二十七次):功能开发与修复上一阶段bug
- 互评Alpha版本——可以低头,但没必要——取件帮
- PSP阶段和WBS