找不到 gem 'sqlite3 (>= 0) ruby​​' [英] Could not find gem 'sqlite3 (>= 0) ruby'

查看:78
本文介绍了找不到 gem 'sqlite3 (>= 0) ruby​​'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习 Ruby on Rails,并且我从 Ryan Bigg 的博客和 Agile Wed Development 一书中关注了 RVM 和 Rails 的安装.这以前在我家里的电脑上工作过,但在工作中它给了我错误:

I am learning Ruby on Rails and I followed the installation of RVM and Rails from Ryan Bigg's blog and the Agile Wed Development book. This has worked previously on my PC at home, but at work it gives me the error:

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

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

I am trying to generate a scaffold but this is what i get:

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 上运行.

I have sqlite3 installed, RVM 1.9.2-p320, and running on Ubuntu 11.04.

任何想法可能导致此问题以及如何解决它?

Any ideas what can be causing this and how to fix it?

推荐答案

运行

bundle install

在您的 Rails 应用程序目录中,就像两条错误消息指示您这样做一样.

in your Rails app's directory just like both error messages instruct you to.

这篇关于找不到 gem 'sqlite3 (>= 0) ruby​​'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆