ruby 2.5.1 macOS索诺马Beta运行
rails server
误差/.rvm/gems/ruby-2.5.1/gems/mysql2-0.5.3/lib/mysql2/mysql2.bundle, 0x0009): Library not loaded: /usr/local/opt/mysql/lib/libmysqlclient.21.dylib (LoadError)我想运行我的Ruby和Rails应用程序。
/.rvm/gems/ruby-2.5.1/gems/mysql2-0.5.3/lib/mysql2/mysql2.bundle, 0x0009): Library not loaded: /usr/local/opt/mysql/lib/libmysqlclient.21.dylib (LoadError)
wbrvyc0a1#
安装
gem install bundler -v 2.3.26
卸载所有mysql gem
gem uninstall mysql2
然后重新安装
bundler install
1条答案
按热度按时间wbrvyc0a1#
安装
卸载所有mysql gem
然后重新安装