Tag: taglib

使用Taglib-Ruby为Web应用程序构建自定义Heroku Ruby / Rails Buildpack

我使用Rails 3.2构建了一个使用taglib-ruby gem的应用程序。 我需要将此应用程序上传到Heroku,但它无法成功构建taglib-ruby gem,因为需要在计算机上安装关联的C ++ taglib库。 Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb checking for main() in -lstdc++… yes checking for main() in -ltag… no You must have taglib installed in order to use taglib-ruby. Debian/Ubuntu: sudo apt-get install libtag1-dev Fedora/RHEL: sudo yum install taglib-devel Brew: brew install taglib MacPorts: sudo […]

Ruby + rtaglib gem的问题

我需要从MP3文件中读取ID3标签,所以我做了一些研究,发现rtaglib是要走的路。 其他插件似乎已经过时了,我还是尝试过它们,但它们都不适用于我。 在安装了rtaglib gem(TagLib的ruby绑定http://developer.kde.org/~wheeler/taglib.html#bindings )后,我无法使其工作。 我尝试将gem添加到gemfile并使用sudo gem install rtaglib安装它。 我得到了它安装的响应,但在那之后我试图要求我得到的两个文件中的任何一个: ?> require’tagfile / tagfile’LoadError:没有要加载的文件 – 来自/Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in require’ from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in tagfile / tagfile require’ from /Library/Ruby/Gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in require’ 或者,如果我尝试TagLib: 要求’TagLib’=> nil 我试图从zip文件中手动移动文件,但不能拉链工作。 谢谢。