找不到 gem 'sqlite3 (>= 0) ruby​​'

2024-02-22

我正在学习 Ruby on Rails,并从 Ryan Bigg 的博客和 Agile Wed Development 书中了解了 RVM 和 Rails 的安装。这之前在我家里的电脑上是有效的,但在工作中它给了我错误:

depot$ rails -v
Could not find gem 'sqlite3 (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.

我正在尝试生成一个脚手架,但这就是我得到的:

depot$ rails generate scaffold Product \ title:string description:text image_url:text price:decimal
Could not find gem 'sqlite3 (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.

我安装了 sqlite3、RVM 1.9.2-p320,并在 Ubuntu 11.04 上运行。

有什么想法可能导致此问题以及如何解决它吗?


Run

bundle install

在 Rails 应用程序的目录中,就像两条错误消息所指示的那样。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

找不到 gem 'sqlite3 (>= 0) ruby​​' 的相关文章

随机推荐