These forums are read-only!
installing sqlite3
  • i have folowed the slicehost article for ruby on rails. Everything worked as described. But creating a new rails project, I get when executing rake: (and other commands)
    Host:/home/test/blog# rake
    Could not find gem 'sqlite3 (>= 0)' in any of the gem sources listed in your Gemfile.
    Run `bundle install` to install missing gems.

    so entering:
    bundle install

    everything installs until:

    Installing sqlite3 (1.3.3) with native extensions /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:551:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

    /usr/bin/ruby1.8 extconf.rb
    checking for sqlite3.h... yes
    checking for sqlite3_libversion_number() in -lsqlite3... yes
    checking for rb_proc_arity()... no
    checking for sqlite3_initialize()... no
    sqlite3-ruby only supports sqlite3 versions 3.6.16+, please upgrade!
    *** 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:
    --with-opt-dir
    .
    .
    .

    I actually get the same error on other fresh debian installs on other vhosts.

    Tried many 'hints' from blogs. still get same error.

    Any ideas
  • Maybe:

    sudo bundle install
    

    I think the error message is assuming you're root maybe.

  • yes, I am root. Since sqlite3 is default in RoR, I would think it would install properly. ???/
  • Here's the fix in good old stack overflow: http://stackoverflow.com/questions/3473214/problem-installing-sqlite3-ruby