分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 技术分享

安装PHP7.1.9 问题

发布时间:2023-09-06 01:22责任编辑:熊小新关键词:PHP
centos 7 安装PHP 7.1.9 过程
 
验证命令
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/bin/mysql --enable-bcmath --with-curl --enable-soap --enable-mbstring --with-mcrypt --with-gd --with-openssl --enable-sockets --enable-fastCGI --enable-fpm 
 
错误汇总
 
  please reinstall  libxml2 ->  yum -y install libxml2*
    please reinstall  openssl ->  yum -y install openssl*
 
 
 
 
 --> yum -y install curl-devel
 
please reinstall  mcrypt -->  
CentOs7默认的yum源没有 libmcrypt-devel包  只能借助epel的yum源,所以先安装epel,再安装libmcrypt
依次执行

yum install -y epel-release
yum install -y libmcrypt-devel

-> 使用 ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-pdo-mysql=/usr/bin/mysql --enable-bcmath --with-curl --enable-soap --enable-mbstring --with-mcrypt --with-gd --with-openssl --enable-sockets --enable-cgi --enable-fpm

no found mysql_config  ->  

查看mysql 安装情况 

rpm -qa|grep mysql

如果没有安装mysql-devel 安装  yum install mysql-devel 就有了 

PDO_MYSQL configure failed, MySQL 4.1 needed

----->  --with-pdo-mysql=mysqlnd

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-pdo-mysql=mysqlnd --enable-bcmath --with-curl --enable-soap --enable-mbstring --with-mcrypt --with-gd --with-openssl --enable-sockets --enable-cgi --enable-fpm

 
  
 
 

安装PHP7.1.9 问题

原文地址:http://www.cnblogs.com/zhizhong/p/7771354.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved