Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Michael Hewner
RE: Unable to build sqlite3 from gem [ reply ]  
2009-04-12 11:07
I had this same problem on ubuntu (Intrepid Ibex I think although I can never keep the animals straight). Turns out as per:

http://blog.charlvn.com/2009/03/installing-sqlite3-ruby.html

a solution that lets you use the gem directly is to

sudo apt-get install libsqlite3-dev

By: Josh Cronemeyer
RE: Unable to build sqlite3 from gem [ reply ]  
2007-04-17 16:13
Hey,

I had a similar problem on ubuntu and the trick was to not use the gem version of sqlite. Instead I installed the libsqlite3-ruby package via my package manager. So now when i do a require 'sqlite3' everything works.


By: Aravind Elango
Unable to build sqlite3 from gem [ reply ]  
2007-04-13 15:12
Hi,

I tried to install sqlite3 and ran into trouble. Btw this is a shared hosting site computer.

Any advice?
Thanks,Aravind

$ gem install sqlite3-ruby-1.2.1.gem

Building native extensions. This could take a while...
ERROR: While executing gem ... (RuntimeError)
Error instaling sqlite3-ruby-1.2.1.gem:
ERROR: Failed to build gem native extension.

ruby extconf.rb install sqlite3-ruby-1.2.1.gem
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 ...../gems/sqlite3-ruby-1.2.1 for inspection.
Results logged to ...../sqlite3_api/gem_make.out