[英]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`
我只是在github上創建了一個應用程序的副本,並將其保存在我的計算機上。 當我嘗試在應用程序目錄中運行Rails服務器時,出現以下錯誤:
Could not find mysql2-0.2.6 in any of the sources
Try running `bundle install`.
但是,今天早些時候,我為Mac OS X安裝了MySQL 5.1.53,並且應該已經安裝了它……至少我可以肯定已經做到了。
即使我確定我的系統上已經安裝了MySQL,為什么終端仍會顯示此錯誤消息?
它不是在抱怨MySQL本身,而是在抱怨缺少的gem。
只需按照消息中的說明進行操作,請運行bundle install
以下載並安裝gem。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.