首页 > 解决方案 > AzerothCore DBand macOS:functions.sh:第 117 行:${1,,}:错误替换

问题描述

尝试在 macOS Catalina 中安装AzerothCore 数据库时,使用:

bash ./bin/acore-db-asm 

我收到以下错误:

azerothcore-wotlk/apps/db_assembler/includes/functions.sh:第 117 行:${1,,}:错误替换

标签: mysqlbashmacosmariadbazerothcore

解决方案


默认情况下,macOS 带有旧版本的bash,这导致了问题。

该脚本仅适用于 bash 5 或更高版本,可以使用 [brew] 安装:

  1. brew install bash

  2. 重启终端

  3. 确保 bash 现在使用正确的版本bash --version

  4. 运行脚本。您可能需要在它前面加上前缀bash,例如bash ./bin/acore-db-asm


推荐阅读