Rails: sqlite3-ruby: Failed to build gem native extension

From FVue
Jump to: navigation, search

Problem

Trying to install gems, I receive this error:

$ bundle install
...
Installing sqlite3-ruby (1.2.5) from .gem files at /home/freddy/.bundle/ruby/1.8/cache 
with native extensions /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:482:in 
`build_extensions': ERROR: Failed to build gem native extension. 
(Gem::Installer::ExtensionBuildError)

Solution

SQLite cannot be build because development files are missing. Install them via:

$ sudo apt-get install libsqlite3-dev

Environment

  • Rails-3.0.0.beta
  • Ubuntu 9.04 (Jaunty Jackalope)

Comments

blog comments powered by Disqus