file sqlite3.h missing

When trying to generate a new Rails application (to test email posting) I receive the message:

Installing sqlite3 (1.3.7) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /home/*/.rbenv/versions/1.9.3-p286/bin/ruby extconf.rb

checking for sqlite3.h… no sqlite3.h is missing.

Try ‘port install sqlite3 +universal’ or ‘yum install sqlite-devel’

Neither of these work.

Where should the library sqlite3 be located? Where is the library search path set up?

How do I get the file sqlite3.h and where should I store it?

What operating system are you using?

Colin

Sorry, forget to mention this, Ubuntu 12.04.

Sorry, forget to mention this, Ubuntu 12.04.

sudo apt-get install libsqlite3-dev sqlite3

Colin

Thanks! Worked perfectly. Really astonishing fast help!

Thanks! Worked perfectly. Really astonishing fast help!

Glad to be of help

Colin