【问题标题】:Error bundle install - "mysql2" [duplicate]错误捆绑安装-“mysql2”[重复]
【发布时间】:2015-01-20 00:27:56
【问题描述】:

当我运行“捆绑安装”时,我收到以下错误:

An error occurred while installing mysql2 (0.3.17), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.17'` succeeds before bundling.

当我尝试运行命令 gem install mysql2 -v '0.3.17' 时,我得到了错误:

ERROR:  Error installing mysql2:
ERROR: Failed to build gem native extension.

Complete log

我已尝试重新安装和安装导轨。

我在 MacOs 上。

有人吗?谢谢!

【问题讨论】:

标签: ruby-on-rails ruby macos


【解决方案1】:

如果您使用的是自制软件:

brew install mysql

然后

gem install mysql2 -v '0.3.17'

【讨论】:

  • 它没有用,我再次安装gem时出错。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-12-02
  • 2015-11-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多