安装php扩展XLSXWriter
1、下载安装包
https://pecl.php.net/package/xlswriter #例如选择下载1.5.2版本
2、解压下载包
tar -zxvf xlswriter-1.5.2.tgz
3、进入文件夹,编译
cd xlswriter-1.5.2
phpize && ./configure --with-php-config=/usr/local/opt/php@7.4/bin/php-config --enable-reader
make&&make install
make test
4、在php.ini文件增加 extension=xlswriter.so
问题:安装PHP扩展执行phpize 报错为:
Cannot find config.m4. Make sure that you run /usr/local/bin/phpize in the top level sourc
解决方案:进入下载的目录执行phpize就可以了
标签: xlswrite