0

按照此处的说明,我尝试运行rake db:create并收到此错误:

Could not find gem 'mysql2 (~> 0.5)' in rubygems repository https://rubygems.org/ or installed locally.
The source does not contain any versions of 'mysql2'
Run `bundle install` to install missing gems.

然后,运行时bundle install我得到这个:

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

还尝试安装引发此错误的 mysql2 gem 。

有关如何克服此问题的任何帮助?

4

1 回答 1

0

尝试这个

gem install mysql2 -v 0.5.3 -- --srcdir=/opt/homebrew/include/mysql/

于 2022-02-23T03:38:09.793 回答