docker-compose - 使用 Docker for Windows 方法创建全新安装 AC 后出错 - 第 17 行错误
问题描述
启动步骤 2 时出现此错误)在 Win10 上编译 Docker 安装方法的 AzerothCore
$ ./acore.sh docker build
Deno version check:
/e/azerothcore-wotlk/apps/bash_shared/deno.sh: line 17: ./deps/deno/bin/deno: cannot execute binary file: Exec format error
Installing Deno...
######################################################################## 100.0%######################################################################### 100.0%
Archive: /e/azerothcore-wotlk/deps/deno/bin/deno.zip
inflating: /e/azerothcore-wotlk/deps/deno/bin/deno.exe
Deno was installed successfully to /e/azerothcore-wotlk/deps/deno/bin/deno
Manually add the directory to your $HOME/.bash_profile (or similar)
export DENO_INSTALL="/e/azerothcore-wotlk/deps/deno"
export PATH="$DENO_INSTALL/bin:$PATH"
Run '/e/azerothcore-wotlk/deps/deno/bin/deno --help' to get started
/e/azerothcore-wotlk/apps/bash_shared/deno.sh: line 17: ./deps/deno/bin/deno: cannot execute binary file: Exec format error
解决方案
当您在deps/deno/bin
目录下同时拥有 linux 和 windows deno 可执行文件时,会发生此错误。您可以通过使用最新的 AC 提交并从该目录中删除 deno 可执行文件来修复它。
但是,这个 PR 应该可以解决这个问题:https ://github.com/azerothcore/azerothcore-wotlk/pull/5406/files
推荐阅读
- php - 如何使用 PHP 将 https 错误状态设置为 404,以便它可以由 .htaccess 文件处理?
- python-3.x - 将我的代码从多处理更改为正常
- python - TypeError:无法处理此数据类型
- arrays - 如何将数组的每个元素乘以 Swift 中下一个数组的每个元素?
- javascript - 在赛普拉斯中保存变量
- java - Spring MVC @ModelAttribute 未填充 AJAX Post 请求
- c++ - ASIO io_service 在第二次 run() 调用时不处理后处理程序
- opengl - glsl 顶点着色器导致 INTCONSTANT 错误
- java - 加载数据并推送到 RecyclerView 未显示
- r - 为什么使用 plotstyle="ggplot" 时 qqcomp 函数中没有显示任何点?