0

id3lib-ruby と id3lib を使用して Heroku で実行していた古いコードを復活させようとしていますが、うまくいきません。サポートされているかどうか教えてもらえますか? id3lib-ruby gem 自体がサポートされなくなったことは知っていますが、Heroku で実行できるかどうかは疑問です。

ここに私が得ているエラーがあります:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

   /tmp/build_3287hfmgqe8t8/vendor/ruby-2.0.0/bin/ruby extconf.rb
   checking for main() in -lstdc++... yes
   checking for main() in -lz... yes
   checking for main() in -liconv... no
   checking for id3.h... no
   You must have id3lib installed in order to use id3lib-ruby.
   *** 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
   --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=/tmp/build_3287hfmgqe8t8/vendor/ruby-2.0.0/bin/ruby
   --with-stdc++lib
   --without-stdc++lib
   --with-zlib
   --without-zlib
   --with-iconvlib
   --without-iconvlib


   Gem files will remain installed in /tmp/build_3287hfmgqe8t8/vendor/bundle/ruby/2.0.0/gems/id3lib-ruby-0.6.0 for inspection.
   Results logged to /tmp/build_3287hfmgqe8t8/vendor/bundle/ruby/2.0.0/gems/id3lib-ruby-0.6.0/ext/id3lib_api/gem_make.out
   An error occurred while installing id3lib-ruby (0.6.0), and Bundler cannot
   continue.
   Make sure that `gem install id3lib-ruby -v '0.6.0'` succeeds before bundling.
   Failed to install gems via Bundler.
   Push rejected, failed to compile Ruby/Rails app

誰にもアイデアはありますか?

ありがとう...クリス

4

1 に答える 1

1

4ヶ月遅れですが…

エラーは、正常にインストールするためにヘッダーとライブラリ ファイルを使用できるようにするid3lib-ruby必要があるためです (エラーが示すように、ネイティブ拡張がビルドされます)。id3libHeroku ではデフォルトでこれらを使用できないため、ビルドパック ( https://devcenter.heroku.com/articles/buildpacks ) を使用してインストールする必要があります。

私はちょうど同じボートに乗っていたので、インストールするHerokuビルドパックを作成しました。これは、ビルドできるようにルビービルドパックでid3lib(を使用して)構成できます:https://github.com/benalavi/buildpack-id3libheroku-buildpack-multiid3lib-ruby

于 2013-11-08T19:54:38.860 に答える