当我运行rake db:create时,我得到这个错误:
LoadError: cannot load such file -- mysql2/mysql2
/Users/vitorqueiroz/dev/pipeline/config/application.rb:10:in `<top (required)>'
/Users/vitorqueiroz/dev/pipeline/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)我不得不手动安装mysql2 gem,因为gemfile指定的版本是'0.3.20‘。
我运行了gem install mysql2 -v '0.3.20' -- --srcdir=/usr/local/include/mysql
Bundle install运行良好,并显示所有内容都已安装。
bundle list mysql2的评估结果为:
/Users/vitorqueiroz/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/mysql2-0.3.20--
有其他选择吗?
发布于 2019-07-11 05:19:18
https://stackoverflow.com/questions/56976987
复制相似问题