Knowledgebase: Ruby On Rails
SQLite 3 Ruby
Posted by - NA - on 01 December 2008 05:39 AM

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
(459 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
Help Desk Software by Kayako fusion