簡體   English   中英

無法更新指南針版本

[英]Can't update compass version

我運行此命令,sudo gem install guide --pre

這給我一個錯誤

Fetching: sass-3.3.14.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing compass:
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:4:in `<main>'

Gem files will remain installed in /var/lib/gems/1.9.1/gems/ffi-1.9.3 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/ffi-1.9.3/ext/ffi_c/gem_make.out

current compass version - 
Compass 0.12.7 (Alnilam)

current ruby version -
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

sass version -
Sass 3.3.14 (Maptastic Maple)

gem version -
1.8.23

以防萬一沒有人看到@ymonad的評論,對我來說,解決方法是:

apt-get update
apt-get install ruby1.9.1-dev
apt-get install ruby-dev
apt-get install build-essential

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM