SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Mar 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    gem install sqlite3 fails

    I get this message when I try "sudo gem install sqlite3-ruby":

    Building native extensions. This could take a while...
    ERROR: Error installing sqlite3-ruby:
    ERROR: Failed to build gem native extension.

    /usr/local/bin/ruby extconf.rb install sqlite3-ruby
    checking for fdatasync() in -lrt... yes
    checking for sqlite3.h... no

    make
    make: *** No rule to make target `ruby.h', needed by `sqlite3_api_wrap.o'. Stop.

    I'm relatively new to linux. Any suggestions? Thanks.

  2. #2
    SitePoint Member
    Join Date
    Mar 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    my fault! I needed the libraries. So, first I had to :
    sudo apt-get install libsqlite3-0 libsqlite3-dev

    Then, I could
    sudo gem install sqlite3-ruby

    worked fine.

  3. #3
    SitePoint Zealot
    Join Date
    May 2005
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How do you fix this on Leopard?

  4. #4
    SitePoint Member
    Join Date
    Apr 2009
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmmm..didnt work for me...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •