我最近将 'taglib-ruby' gem 添加到我的 rails 项目中,并试图将项目推送到 Heroku。但是,即使我捆绑安装,推送也会不断被拒绝,并出现以下错误:
You must have taglib installed in order to use taglib-ruby.
remote:
remote: Debian/Ubuntu: sudo apt-get install libtag1-dev
remote: Fedora/RHEL: sudo yum install taglib-devel
remote: Brew: brew install taglib
remote: MacPorts: sudo port install taglib
remote:
remote: *** extconf.rb failed ***
remote: Could not create Makefile due to some reason, probably lack of necessary
remote: libraries and/or headers. Check the mkmf.log file for more details. You may
remote: need configuration options.
An error occurred while installing taglib-ruby (0.7.1), and Bundler cannot
remote: continue.
remote: Make sure that `gem install taglib-ruby -v '0.7.1'` succeeds before bundling.
remote:
remote: In Gemfile:
remote: taglib-ruby
注意:我知道有人问过这个问题,但大多数答案都提供了相同的构建包,这些构建包非常过时,要么已被弃用,要么不起作用,要么记录不充分。
有人知道这个问题的最新构建包吗?
或者,有人对我自己的 buildpack 有什么建议吗?
关于 TagLib 的一些信息:必须先通过 homebrew 安装(如果您正在运行的话),然后才能安装 gem。推送到 Heroku 时如何处理诸如此类的依赖关系?
谢谢您的帮助!!