Home sqlite3-ruby install error on Ubuntu
Reply: 0

sqlite3-ruby install error on Ubuntu

user8557 Published in September 19, 2018, 3:49 am

I have the following error during sqlite3-ruby install:

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
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal' or 'yum install sqlite3-devel'
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:

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

sqlite3.h is located in /usr/include/

sudo gem install sqlite3-ruby --without-sqlite3-include=/usr/include

doesn't work

ERROR:  While executing gem ... (OptionParser::InvalidOption)
    invalid option: --without-sqlite3-include=/usr/include

Ubuntu 10.04

share|improve this question
  • same issue - this is not answered. sqlite3.h is non-existent and all the above packages are installed. ubunut 10.10 – rrt Feb 11 '11 at 16:55
  • Try to sudo apt-get install build-essential and then sudo gem install sqlite3-ruby – Dmitry Feb 11 '11 at 16:55
  • 1
    it has since changed to just sqlite3, not sqlite3-ruby – kelloti Nov 14 '11 at 4:50
  • 3
    Worked for me on ubuntu 12.04 as marshluca suggested. sudo apt-get install libsqlite3-dev – panta Dec 5 '12 at 13:19

18 Answers 18

active oldest votes
up vote 569 down vote accepted
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.40203 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO