我已经通过brew安装了mariadb,卸载了mariadb,并安装了mysql@5.6。我试图运行rake db:create命令,但得到以下跟踪:
hackintosh: user$ rake db:create --trace
rake aborted!
LoadError: dlopen(/Users/user/.rvm/gems/ruby-2.3.0/bundler/gems/mysql2-
<redacted>/lib/mysql2/mysql2.bundle, 9): Library not loaded:
/usr/local/opt/mariadb/lib/libmariadb.3.dylib
Referenced from: /Users/user/.rvm/gems/ruby-2.3.0/bundler/gems/mysql2-
<redacted>/lib/mysql2/mysql2.bundle
Reason: image not found - /Users/user/.rvm/gems/ruby-2.3.0/bundler/gems/mysql2-
<redacted>/lib/mysql2/mysql2.bundle
我没有安装mariadb并执行grep,发现没有显示任何引用mariadb的字符串。我在指定的路径中看不到文件libmariadb.3.dylib,也没有尝试使用mariadb。如果rake不在配置文件或环境路径中,为什么会寻找libmariadb.3.dylib?
我执行了以下命令来搜索mariadb:
sudo find / -iname "mariadb"
grep -R "mariadb" . # from project directory
我在Mac OSX 10.14.5上