2013-06-28 122 views
2

我剛開始說感覺應該已經寫了一些關於該主題的內容,但是我沒有設法找到任何東西,所以請隨時重定向我。在Debian Wheezy上安裝/構建ruby時出現錯誤

所以,我打算用Sass與手錶

sass --watch style.scss:style.css 

哪位告訴我,我需要安裝聽,但是當我這樣做,我得到一個生成錯誤。

[email protected]:~$ sudo gem install listen 
Building native extensions. This could take a while... 
ERROR: Error installing listen: 
    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.0 for inspection. 
Results logged to /var/lib/gems/1.9.1/gems/ffi-1.9.0/ext/ffi_c/gem_make.out 

系統

$ ruby --version 
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] 
$ uname -a 
Linux Minos 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1 x86_64 GNU/Linux 

回答

5

我剛整理出來,只是需要ruby1.9.1-dev

$ sudo aptitude install ruby1.9.1-dev 
+0

它看起來像你剛纔救了我1小時11分鐘。感謝您回覆並回復! –

相關問題