【问题标题】:How to install ROR to ubuntu 12.04 ? Getting error with sqlite3如何将 ROR 安装到 ubuntu 12.04? sqlite3 出现错误
【发布时间】:2026-01-18 04:55:01
【问题描述】:

我是 ROR 的新手。因此,当我尝试安装 ROR 时。 当我尝试启动 rails(rails s) 我得到这样的错误:

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

P.S. I'm working on Ubuntu 12.04

【问题讨论】:

    标签: ruby-on-rails ruby ubuntu-12.04 sqlite3-ruby


    【解决方案1】:

    试试

    sudo apt-get install libsqlite3-dev
    

    sudo gem install sqlite3-ruby
    

    然后运行

    bundle install
    

    您只需阅读指示您执行的错误消息。

    Run `bundle install` to install missing gems.
    

    【讨论】:

      【解决方案2】:

      RyanBigg 的博客非常适合为 ubuntu 安装 ROR。因此,以下链接可能会对您有所帮助。
      http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/

      【讨论】: