Are you attempting to install the sqlite3-ruby gem and you are receiving this error?
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 /usr/lib/ruby/gems/1.8/gems/sqlite3-1.3.3 for inspection. Results logged to /usr/lib/ruby/gems/1.8/gems/sqlite3-1.3.3/ext/sqlite3/gem_make.out
Well, we have the solution for you. Your Linux installation requires that the development libraries for SQLite3 to be installed in order to build the gem. Here is the proper way for install this gem:
How to install sqlite3-ruby gem
sudo apt-get install sqlite3
sudo apt-get install libsqlite3-dev
sudo gem install sqlite3-ruby
If you are still having trouble….
Try installing the development package of Ruby 1.8 by using the command below, and then attempt to install Sqlite3:
sudo apt-get install ruby1.8-dev