swoole / swoole-cli

SWOOLE-CLI is a php binary distribution composed swoole & php-core & cli & fpm and mostly of common extensions.
192 stars 36 forks source link

build提示 ext/phar/phar_internal.h:619:1: error: expected identifier or '(' #603

Closed taobali32 closed 7 months ago

taobali32 commented 7 months ago

image

使用的是官方提供的base镜像, 运行的命令是 bash make.sh build 然后就报错了 image

jingjingxyk commented 7 months ago

你查看下你本地的源代码代码

也就是这个文件,619行,看看是否有错误 https://github.com/swoole/swoole-cli/blob/main/ext/phar/phar_internal.h

先看下查看一下619行

cat ext/phar/phar_internal.h

可参照这个脚本,一条命令构建完毕

https://github.com/swoole/swoole-cli/blob/main/build-release-example.sh

jingjingxyk commented 7 months ago

或者参考这里: https://github.com/swoole/swoole-cli/issues/504

jingjingxyk commented 7 months ago

linux 环境下构建,需要容器外执行一遍,容器内执行一遍如下命令


php prepare.php
taobali32 commented 7 months ago

see https://www.yuque.com/u2401684/ye23db/rwlv2dmmf1a3aktg?singleDoc# 《swoole-cli》