2014-03-24 170 views
0

我試圖用bundler安裝susy2/sass/compass。 我的Gemfile:解決:Bundler停在gem json安裝

source "https://rubygems.org" 
gem 'sass', '~> 3.3.2' 
gem 'susy', '~> 2.1.1' 
gem 'json', '~> 1.8.1' 
gem 'compass', '~> 1.0.0.alpha.19' 

捆綁安裝顯示錯誤

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. 

     /usr/bin/ruby1.9.1 extconf.rb 
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError) 
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
    from extconf.rb:1:in `<main>' 

Gem files will remain installed in /home/bernie/.bundler/tmp/6210/gems/json-1.8.1 for inspection. 
Results logged to /home/bernie/.bundler/tmp/6210/gems/json-1.8.1/ext/json/ext/generator/gem_make.out 
An error occurred while installing json (1.8.1), and Bundler cannot continue. 
Make sure that `gem install json -v '1.8.1'` succeeds before bundling. 

寶石列表顯示:

bundler (1.5.1) 
celluloid (0.15.2) 
chunky_png (1.3.0) 
compass (0.12.4) 
compass-core (1.0.0.alpha.19) 
compass-import-once (1.0.4) 
fssm (0.2.10) 
multi_json (1.9.2) 
permutation (0.1.8) 
rake (10.2.0) 
rb-fsevent (0.9.4) 
sass (3.3.4, 3.2.18) 
susy (2.1.1) 
timers (1.1.0) 

什麼想法?

回答

1

有點谷歌搜索告訴我this,你試過了嗎?

sudo apt-get install ruby1.9.1-dev 
+0

嗯,我試了很多。但我還沒有找到解決方案。這很簡單!有用。感謝您的善意支持。 – Bernie

相關問題