Project

General

Profile

Cannot install sqlite3 gem

Added by Roland Pish almost 14 years ago

Hi!
I would like to use sqlite3 for my redmine installation as it is local and only for me. I also want sqlite3 because I need to take the db in my usb flash and take it to my laptop at home and it's easier to do this rather than mysql or postgres.

Ok, so I got an error installing the sqlite3 gem:

11:34:56|root@pishdev:/home/pish/redmine# 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/ruby1.8 extconf.rb
extconf.rb:3:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:3

Gem files will remain installed in /var/lib/gems/1.8/gems/sqlite3-ruby-1.3.1 for inspection.
Results logged to /var/lib/gems/1.8/gems/sqlite3-ruby-1.3.1/ext/sqlite3/gem_make.out

What is the way to install the sqlite3 gem?

Thanks in advance


Replies (3)

RE: Cannot install sqlite3 gem - Added by Felix Schäfer almost 14 years ago

This is more of a ruby than a redmine question, but you will probably need something like a ruby-dev package or whatever. Some distro-specific forum will probably be better suited to find answers to that sort of questions.

RE: Cannot install sqlite3 gem - Added by Roland Pish almost 14 years ago

Ok, thanks a lot Felix!

I'm totally newbie in ruby on rails applications, but as you suggested I installed ruby-dev and sqlite3 gem was installed without problems.

I have one last question I hope related to redmine: my plan is to use redmine via passenger module with apache.
What is better for redmine: install libapache2-mod-passenger directly from my distro, or do the gem install passenger and install it from the gem?

Thanks a lot for your help.

RE: Cannot install sqlite3 gem - Added by Felix Schäfer almost 14 years ago

It should make no difference to redmine, I think installing the one from your distro will be easier, so go with that one.

    (1-3/3)