博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
服务器环境配置
阅读量:4203 次
发布时间:2019-05-26

本文共 586 字,大约阅读时间需要 1 分钟。

## centos安装编译环境

yum groupinstall 'Development Tools'


和你系统php版本对应的源码目录 /root/sources/php-5.3.26 


####################################################

上边两步都已完成。

####################################################


/root/sources/php-5.3.26  下面,ext子目录 是php各扩展的目录。

比如安装php-gd扩展 转到 ext/gd 目录下

cd  ext/gd 


执行如下命令

## 安装 gd-devel 开发包 编译需要其它的扩展,如mysql扩展 对应mysql-devel 

##  编译mysqli扩展同需要 mysql-devel 等等

yum install gd-devel 


## 配置扩展编译脚本 生成configure

/usr/local/bin/phpize ./   


## 检查编译环境 

./configure 


## 编译

make


## 安装

make install  


编辑php配置文件 /usr/local/lib/php.ini  找到 extension 区块,增加新行(具体看这个文件)

extension=gd.so

转载地址:http://xpcli.baihongyu.com/

你可能感兴趣的文章
Keras(三)实现深度神经网络
查看>>
sigmoid函数求导、求极值(史上最详细)
查看>>
Keras(四)实现批标准化、激活函数、dropout
查看>>
Keras(五)wide_deep模型
查看>>
Keras(六)keras模型封装转化为sklearn模型、使用超参数搜索
查看>>
排坑:TypeError: handle_get_file_code() got an unexpected keyword argument ‘save_all‘
查看>>
C++ explict
查看>>
const
查看>>
new & delete
查看>>
《Windows程序设计》第4章
查看>>
VC项目文件说明
查看>>
用Win32实现类似MFC中Draw3dRect函数的功能
查看>>
static、const和static const以及它们的初始化
查看>>
static
查看>>
《Windows程序设计》第5章
查看>>
#define
查看>>
IP首部检验和
查看>>
ARP分组
查看>>
hostent h_addr_list
查看>>
http 提交
查看>>