hyperf / box

Box is committed to helping improve the programming experience of PHP applications, expecially for Hyperf, managing the PHP environment and related dependencies, providing the ability to package PHP applications as binary programs, and also providing reverse proxy services for managing and deploying Swoole/Swow applications.
143 stars 20 forks source link

window10 环境下构建二进制文件失败 #63

Open carl007-jf opened 2 years ago

carl007-jf commented 2 years ago

image 构建提示失败,能生产exe文件,运行时闪退

huangzhhui commented 2 years ago

更新至 v0.5.4 再试一下

carl007-jf commented 2 years ago

更新到v0.54 跟原来的情况一样,内核是默认的swow image

huangzhhui commented 2 years ago

@carl007-jf 你是在 CMD 还是 PowerShell 执行的?具体的命令是?

carl007-jf commented 2 years ago

cmd里面操作的,具体的命令是:>box.exe build E:\testwww\boxtest\swowtest

------------------ 原始邮件 ------------------ 发件人: "hyperf/box" @.>; 发送时间: 2022年10月18日(星期二) 上午10:07 @.>; @.**@.>; 主题: Re: [hyperf/box] window10 环境下构建二进制文件失败 (Issue #63)

@carl007-jf 你是在 CMD 还是 PowerShell 执行的?具体的命令是?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

carl007-jf commented 2 years ago

PowerShell 执行构建也是失败的,项目路径 E:\testwww\boxtest\swowtest 具体命令:box.exe build ./ 采用绝对路径也是这个提示 image image

huangzhhui commented 2 years ago

box-build.phar.tmp 文件生成了吗?文件所在路径是啥?

carl007-jf commented 2 years ago

可以生成,在项目的根目录下面 image

LTaooo commented 1 year ago

box-build.phar.tmp 文件生成了吗?文件所在路径是啥?

image 我也是一样, tmp文件就在项目目录底下, 我是在docker镜像下弄的

huangzhhui commented 1 year ago

@carl007-jf 可以试试这个构建是否已经修复你的问题 https://github.com/hyperf/box/suites/9080711867/artifacts/420737071

carl007-jf commented 1 year ago

使用powershell; 失败的,这次是没有生成"box-build.phar.tmp"文件; 用box启动项目之后也没有生成"E:\testwww\boxtest\swowtest/runtime/container"目录,项目启动命令: box php .\bin\hyperf.php start,项目启动后能正常服务。 可以生成hyperf.exe,启动该文件闪退。用绝对路径构建也是相同的问题。

项目路径和文件

------------------ 原始邮件 ------------------ 发件人: "hyperf/box" @.>; 发送时间: 2022年11月2日(星期三) 晚上10:13 @.>; @.**@.>; 主题: Re: [hyperf/box] window10 环境下构建二进制文件失败 (Issue #63)

@carl007-jf 可以试试这个构建是否已经修复你的问题 https://github.com/hyperf/box/suites/9080711867/artifacts/420737071

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>