linux下php安装扩展xlswriter

linux下php安装扩展xlswriter

先查看下当前php的版本,根据当前对应版本下载xlswriter扩展
1. 下载xlswriter包
[php]
wget http://pecl.php.net/get/xlswriter-1.4.0.tgz
[/php]
2. 解压下载包
[php]tar -zxvf xlswriter-1.3.6.tgz[/php]
3. 将解压的下载包拷贝到/usr/local目录下
[php]
mv /root/xlswriter-1.4.0 /usr/local/xlswriter-1.4.0
[/php]
4. 进入/usr/local/xlswriter-1.4.0下
[php]
cd /usr/local/xlswriter-1.4.0
[/php]
5. 执行phpize
[php]
phpize
[/php]
6. 执行配置
[php]
./configure –with-php-config=/usr/local/php71/bin/php-config
[/php]
7. 安装执行
[php]
make&&make install
[/php]
8. 安装完成后在php.ini下修改配置
新增一个xlswriter扩展
[php]
extension = xlswriter.so
[/php]

发表评论

© 2022. powered by PHP 个人小站