Sqlite3-Ruby Gem Can't Find SQLite3.H on Ubuntu

sqlite3-ruby gem can't find sqlite3.h on ubuntu

Never mind. gcc itself wasn't installed, as I discovered when I tried to install another gem with better error messages.

sqlite3-ruby install error on Ubuntu

You need the SQLite3 development headers for the gem’s native extension to compile against. You can install them by running (possibly with sudo):

apt-get install libsqlite3-dev

I can't install sqlite3 gem for Ubuntu 10

You need to first install the sqlite development headers so it can compile the gem against them:

sudo apt-get install libsqlite3-dev

Then try installing the gem.

gem install sqlite3 gives error - sqlite3.h is missing

I am seeing you are on Linux. Installing the libsqlite3-dev package should fix your problem (at least that's what it's called on Debian).

e.g. sudo apt-get install libsqlite3-dev

If that's not the right package name, just look around for sqlite3's development package (which includes headers and often times compiler/linker intermediate files).

Issue with 'gem install sqlite3-ruby' on RHEL6

It turns out you have to have gcc installed for 'gem install sqlite3-ruby' to work. It will never explicitly tell you that gcc isn't found (even the log file doesn't mention it).



Related Topics



Leave a reply



Submit