Knowledgebase: Ruby on Rails
sqlite3-ruby
Posted by Pacific Host on 04 December 2011 04:55 PM
Should you run into the following error when installing the sqlite3-ruby gem, you'll want to install sqlite-devel.x86_64 to resolve the issue.

root@shannon [~]# gem install sqlite3-ruby
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb install sqlite3-ruby
checking for fdatasync() in -lrt... yes
checking for sqlite3.h... no

make
make: *** No rule to make target `ruby.h', needed by `sqlite3_api_wrap.o'. Stop.

Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/gem_make.out

**************Solution*****************
yum install sqlite-devel.x86_64
gem install sqlite3-ruby
(0 vote(s))
Helpful
Not helpful

Comments (0)