mysql - 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,,}:错误替换
解决方案
默认情况下,macOS 带有旧版本的bash
,这导致了问题。
该脚本仅适用于 bash 5 或更高版本,可以使用 [brew] 安装:
跑
brew install bash
重启终端
确保 bash 现在使用正确的版本
bash --version
运行脚本。您可能需要在它前面加上前缀
bash
,例如bash ./bin/acore-db-asm
推荐阅读
- sql - 乘以 case when 语句
- magento - Nginx 服务器上的 Magento 2 Varnish
- spring - 实现 Spring JPA 时的方法冲突
- webpack - 如何提高构建速度(Webpack、Pug、SCSS)?
- python-3.x - 选择目录在 PyQt5 中创建目录
- python - 需要遍历两个列表并吐出最终列表,但能够从其中一个列表的任何元素开始
- r - 用 mclapply() 替换多维数组上的嵌套 for 循环
- html - 2 第一部分带有边框半径的背景颜色
- .htaccess - .htaccess 文件中的重写规则不适用于子域到主域
- kubernetes - “kubectl patch”中有没有办法在不指定索引的情况下删除数组中的特定对象?