[英]Error when running Rails Server on a local copy: Could not find mysql2-0.2.6 in any of the sources. Try running `bundle install`
I just forked a copy of an app on github and saved it on my computer. 我只是在github上创建了一个应用程序的副本,并将其保存在我的计算机上。 When I attempt to run the rails server in the application directory, I get the following error:
当我尝试在应用程序目录中运行Rails服务器时,出现以下错误:
Could not find mysql2-0.2.6 in any of the sources
Try running `bundle install`.
Earlier today, however, I installed MySQL 5.1.53 for Mac OS X and supposedly installed it...at least I'm quite certain I did. 但是,今天早些时候,我为Mac OS X安装了MySQL 5.1.53,并且应该已经安装了它……至少我可以肯定已经做到了。
Why does terminal come up with this error message even though I'm quite certain I have MySQL already installed on my system? 即使我确定我的系统上已经安装了MySQL,为什么终端仍会显示此错误消息?
It's not complaining about MySQL itself, it's complaining about the missing gem. 它不是在抱怨MySQL本身,而是在抱怨缺少的gem。
Just do what the message says, run a bundle install
to download and install the gem. 只需按照消息中的说明进行操作,请运行
bundle install
以下载并安装gem。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.