小编Fal*_*ani的帖子

由于缺少原生扩展,Nokogiri安装错误

我一直在尝试根据这些说明安装Ruby on Rails .但是,运行时出现以下错误gem install rails -v 4.2.4:

Fetching: rack-1.6.4.gem (100%)
Successfully installed rack-1.6.4
Building native extensions.  This could take a while...
ERROR:  Error installing rails:
    ERROR: Failed to build gem native extension.

    /home/falak/.rvm/rubies/ruby-2.2.3/bin/ruby -r ./siteconf20150909-22683-172bl7d.rb extconf.rb
checking if the C compiler accepts ... *** 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 …
Run Code Online (Sandbox Code Playgroud)

ruby ruby-on-rails nokogiri ubuntu-14.04

4
推荐指数
2
解决办法
5634
查看次数

标签 统计

nokogiri ×1

ruby ×1

ruby-on-rails ×1

ubuntu-14.04 ×1