Ruby缺少taglib错误



在我的Ubuntu 14.04上,我使用RVM安装了Ruby 2.2.0
我已经使用以下命令sudo apt-get install libtag1-dev安装了"taglib"。

然而,当我尝试安装gem时,我会收到以下错误:

> 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.

您需要安装libtagc0-dev才能获得TagLib的C头(gem正在检查的头)。

最新更新