2015-02-09 76 views
1

在我的Ubuntu 14.04上,我使用RVM安裝了Ruby 2.2.0。
我已經使用以下命令sudo apt-get install libtag1-dev安裝了「taglib」。Ruby丟失taglib錯誤

然而,當我嘗試安裝一塊寶石,我得到以下錯誤:

> gem install stream2tracks 
Building native extensions. This could take a while... 
ERROR: Error installing stream2tracks: 
    ERROR: Failed to build gem native extension. 

    /home/dash/.rvm/rubies/ruby-2.2.0-dev/bin/ruby -r ./siteconf20150207-2313-h67sa7.rb extconf.rb 
checking for ruby.h... yes 
checking for taglib/tag_c.h... no 
*** 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 configuration options: 
    --with-opt-dir 
    --without-opt-dir 
    --with-opt-include 
    --without-opt-include=${opt-dir}/include 
    --with-opt-lib 
    --without-opt-lib=${opt-dir}/lib 
    --with-make-prog 
    --without-make-prog 
    --srcdir=. 
    --curdir 
    --ruby=/home/dash/.rvm/rubies/ruby-2.2.0-dev/bin/$(RUBY_BASE_NAME) 

extconf failed, exit code 1 

Gem files will remain installed in /home/dash/.rvm/gems/ruby-2.2.0-dev/gems/taglib2-0.1.5 for inspection. 

回答

0

您需要安裝libtagc0-dev獲得標籤庫的C頭(一個創業板檢查)。