3

When I tried to install: gem install sqlite3-ruby it shows:

    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-ruby-1.3.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.3.1/ext/sqlite3/gem_make.out

My environment: sqlite: 2.8.17 rails: 3.0.0 ruby: 1.9.2 ubuntu: 10.04 gem: 1.3.7

I have looking all similiar question in webs and SO, nothing help, what should I do? :(

1 Answer 1

2

I had this same problem. I solved it by

sudo apt-get install sqlite3 libsqlite3-dev

Then the following command worked.

sudo gem install sqlite3-ruby
Sign up to request clarification or add additional context in comments.

1 Comment

sorry for no respond in such long time

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.