file sqlite3.h missing

126 views
Skip to first unread message

Tommy Pollák

unread,
Mar 23, 2013, 11:59:36 AM3/23/13
to rubyonra...@googlegroups.com
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? 

Colin Law

unread,
Mar 23, 2013, 12:04:29 PM3/23/13
to rubyonra...@googlegroups.com
On 23 March 2013 15:59, Tommy Pollák <kas...@osttimorkommitten.se> wrote:
> 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'

What operating system are you using?

Colin

Tommy Pollák

unread,
Mar 23, 2013, 12:10:05 PM3/23/13
to rubyonra...@googlegroups.com, cla...@googlemail.com
Sorry, forget to mention this, Ubuntu 12.04.

Colin Law

unread,
Mar 23, 2013, 12:11:26 PM3/23/13
to Tommy Pollák, rubyonra...@googlegroups.com
On 23 March 2013 16:10, Tommy Pollák <kas...@osttimorkommitten.se> wrote:
> Sorry, forget to mention this, Ubuntu 12.04.

sudo apt-get install libsqlite3-dev sqlite3

Tommy Pollák

unread,
Mar 23, 2013, 1:19:31 PM3/23/13
to rubyonra...@googlegroups.com
Thanks! Worked perfectly. Really astonishing fast help!

Colin Law

unread,
Mar 23, 2013, 1:30:21 PM3/23/13
to rubyonra...@googlegroups.com
On 23 March 2013 17:19, Tommy Pollák <kas...@osttimorkommitten.se> wrote:
> Thanks! Worked perfectly. Really astonishing fast help!

Glad to be of help

Colin
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/4sS_C6h21wAJ.
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages