首页 > 解决方案 > 使用 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

标签: docker-composedocker-for-windowsazerothcore

解决方案


当您在deps/deno/bin目录下同时拥有 linux 和 windows deno 可执行文件时,会发生此错误。您可以通过使用最新的 AC 提交并从该目录中删除 deno 可执行文件来修复它。

但是,这个 PR 应该可以解决这个问题:https ://github.com/azerothcore/azerothcore-wotlk/pull/5406/files


推荐阅读