RoR安装:运行'bundle install'不起作用?

时间:2011-08-31 22:24:19

标签: ruby-on-rails

在尝试在Ubuntu 10.10上运行第一个项目时,我得到了这个:

antonio@antonio-desktop:~/Documents/tickets$./script/rails server
Could not find gem 'sqlite3 (>= 0)' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.

好吧,之后我写道:

antonio@antonio-desktop:~/Documents/tickets$ bundle install

并在安装过程中得到这个:

        /usr/bin/ruby1.8 extconf.rb 
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite3-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

所以,我试过这个:

 sudo yum install sqlite3-devel

得到了这个:

 Setting up Install Process
    No package sqlite3-devel available.
    Nothing to do

为什么呢?我正在运行Rails 3.1,顺便说一句。

2 个答案:

答案 0 :(得分:3)

尝试:sudo apt-get install libsqlite3-dev

答案 1 :(得分:0)

由于您正在使用yum,我继续前进并猜测您使用的是Fedora。然后我用Googled“fedora sqlite3”找到了blog post建议:

sudo yum install sqlite-devel

听起来宝石没有正确的包装名称。给这个人一个:)

相关问题