Hi all, I have been reading and trying all the google links/forums for 2 nights now on how to fix my issue with getting sqlite3 installed so I can use rails. Im running SLED 11. plese help! thank you! $ uname -a Linux linux-7lbv 2.6.27.19-5-pae #1 SMP 2009-02-28 04:40:21 +0100 i686 i686 i386 GNU/Linux $ 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/bin/ruby extconf.rb 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/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 linux-7lbv:/home/derek/Desktop # gem list --local *** LOCAL GEMS *** actionmailer (2.3.2) actionpack (2.3.2) activerecord (2.3.2) activeresource (2.3.2) activesupport (2.3.2) acts_as_ferret (0.4.4) cgi_multipart_eof_fix (2.5.0) daemons (1.0.10) gem_plugin (0.2.3) rack (1.0.0) rails (2.3.2) rake (0.8.7) rubygems-update (1.3.4) wirble (0.1.3) $ rpm -qa |egrep ''^libsql|^ruby'' ruby-1.8.7.p72-5.21 libsqlite3-0-3.6.4-2.8 ruby-devel-1.8.7.p72-3.1 -- Posted via http://www.ruby-forum.com/.
Derek Smith wrote:> Hi all, > > I have been reading and trying all the google links/forums for 2 nights > now on how to fix my issue with getting sqlite3 installed so I can use > rails.[...] Why not use a real DB? I recommend PostgreSQL. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
Derek Smith wrote:> Hi all, > > I have been reading and trying all the google links/forums for 2 nights > now on how to fix my issue with getting sqlite3 installed so I can use > rails. Im running SLED 11. plese help! thank you! > > $ uname -a > Linux linux-7lbv 2.6.27.19-5-pae #1 SMP 2009-02-28 04:40:21 +0100 i686 > i686 i386 GNU/Linux > > $ 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/bin/ruby extconf.rb > checking for fdatasync() in -lrt... yes > checking for sqlite3.h... no >You need to install the development set for SQLite3 since the gem has a native build. From: http://theplana.wordpress.com/2007/05/11/install-sqlite3-on-ubuntu/ you need to do the equivalent of the below step: * Install Sqlite3 sudo apt-get install sqlite3 libsqlite3-dev sudo gem install sqlite3-ruby I''m sorry I''m a limited Linux user (and mostly use Ubuntu there). Cheers Mohit.
Mohit Sindhwani wrote:> Derek Smith wrote: >> $ 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/bin/ruby extconf.rb >> checking for fdatasync() in -lrt... yes >> checking for sqlite3.h... no >> > You need to install the development set for SQLite3 since the gem has a > native build. From: > http://theplana.wordpress.com/2007/05/11/install-sqlite3-on-ubuntu/ > > you need to do the equivalent of the below step: > > * Install Sqlite3 > sudo apt-get install sqlite3 libsqlite3-dev > sudo gem install sqlite3-ruby > > I''m sorry I''m a limited Linux user (and mostly use Ubuntu there). > > Cheers > Mohit.The solution was on SLED 11. Thank you for pointing me in the right direction! linux-7lbv:/home/derek/Desktop # rpm -i sqlite3-devel-3.6.4-1.8.i586.rpm linux-7lbv:/home/derek/Desktop # gem install sqlite3-ruby Building native extensions. This could take a while... Successfully installed sqlite3-ruby-1.2.4 1 gem installed Installing ri documentation for sqlite3-ruby-1.2.4... Installing RDoc documentation for sqlite3-ruby-1.2.4... -- Posted via http://www.ruby-forum.com/.