问题描述
在Win10上启动第2步)编译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