Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Craig Bell
compiling sqlite3-ruby on OpenSuse 11.0 [ reply ]  
2008-09-02 04:59
I'm following a cookbook style of a tutorial to learn Ruby on Rails on Linux. I'm installed rubygems 1.8, and used it to compile rails and rake with this command
sudo gem install rails rake
I then used YAST to download these rpms:
libsqlite3-0-3.5.7-17.1
sqlite3-3.5.7-17.1
sqlite3-devel-3.5.7-17.1
ruby-devel-1.8.6.p114-6.2
ruby-1.8.6.p114-6.1

Next I'm trying to run
sudo gem install sqlite3-ruby
but it's failing with the following:
sudo gem install sqlite3-rubyroot's password:
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb install sqlite3-ruby
checking for fdatasync() in -lrt... no
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/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/gem_make.out

I saw a few posts with similar failures, but not on this platform. Any ideas? Is there a problem with the level of the RPMs with gem 1.8?