开发者

installing Sqlite3-ruby error

开发者 https://www.devze.com 2023-01-18 22:58 出处:网络
When I tried to install: gem install sqlite3-ruby it shows: Building native extensions.This could take a while...

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 /us开发者_运维问答r/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? :(


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
0

精彩评论

暂无评论...
验证码 换一张
取 消