Ruby缺少标记库错误
在我的Ubuntu 14.04上,我使用RVM安装了Ruby 2.2.0。Ruby缺少标记库错误,ruby,gem,taglib,Ruby,Gem,Taglib,在我的Ubuntu 14.04上,我使用RVM安装了Ruby 2.2.0。 我已经使用以下命令安装了“taglib”sudo-apt-get-install-libtag1-dev 但是,当我尝试安装gem时,会出现以下错误: > gem install stream2tracks Building native extensions. This could take a while... ERROR: Error installing stream2tracks: ERROR
我已经使用以下命令安装了“taglib”
sudo-apt-get-install-libtag1-dev
但是,当我尝试安装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正在检查的头)