Closed Sheldon1024 closed 3 months ago
xlswriter需要自己手动编译进去swoole-cli https://github.com/swoole/swoole-cli/blob/main/docs/linux.md
构建步骤中 关键点
php prepare.php +xlswriter
需要定制构建选项, 修改
build-release.sh
文件 即可,大约 156行 左右,添加 xlswriter 选项即可
git clone -b main --recursive https://github.com/swoole/swoole-cli.git
cd swoole-cli
# 复制构建例子
cp build-release-example.sh build-release.sh
# 执行构建即可
bash build-release.sh
git clone -b main --recursive https://github.com/swoole/swoole-cli.git
cd swoole-cli
# 启动容器
bashsapi/quickstart/linux/run-alpine-container.sh
# 进入容器 并初始化运行环境
bash sapi/quickstart/linux/connection-swoole-cli-alpine.sh
sh sapi/quickstart/linux/alpine-init.sh
# 复制构建例子
cp build-release-example.sh build-release.sh
# 执行构建即可
bash build-release.sh
swoole-cli 运行项目时如何使用xlswriter