提前感谢您的帮助。我已经被这个问题困扰了几天了,绝对可以使用一些帮助。
我目前正在尝试部署我的应用程序,并且我正在使用 taglib-ruby gem,并且可以在我的本地计算机上完美运行。但是当我尝试通过 Heroku OR Engineyard 进行部署时,出现以下错误:
Installing taglib-ruby (0.5.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby19 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 port install taglib
*** 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=/usr/bin/ruby19
--with-tag-dir
--without-tag-dir
--with-tag-include
--without-tag-include=${tag-dir}/include
--with-tag-lib
--without-tag-lib=${tag-dir}/lib
--with-stdc++lib
--without-stdc++lib
--with-taglib
--without-taglib
Gem files will remain installed in /data/musicmind/shared/bundled_gems/ruby/1.9.1/gems/taglib-ruby-0.5.1 for inspection.
Results logged to /data/musicmind/shared/bundled_gems/ruby/1.9.1/gems/taglib-ruby-0.5.1/ext/taglib_base/gem_make.out
An error occured while installing taglib-ruby (0.5.1), and Bundler cannot continue.
Make sure that `gem install taglib-ruby -v '0.5.1'` succeeds before bundling.
我可能做错了什么?我在想也许有一种方法可以将这个库与我的应用程序一起发送以进行部署?
我的gemfile是这样的:
source 'http://rubygems.org'
gem 'rails', '3.2.8'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git'
end
group :development, :test do
gem 'sqlite3'
end
group :production do
gem 'mysql2'
end
gem "taglib-ruby"
gem 'json', '~> 1.6.5'
gem "multi_json", "~> 1.3.6"
#attachment management
gem "paperclip", :git => "git://github.com/thoughtbot/paperclip.git"
#ativity feed
gem 'public_activity', :git => "git://github.com/pokonski/public_activity.git"
gem 'jquery-rails'
#nested-album-form
gem 'nested_form', :git => 'https://github.com/ryanb/nested_form.git'
#creates pattern for widget to send form data in json back to server
gem "js_message"
gem 'kaminari'
#gem 'will_paginate'
#user authentication
gem 'devise'
#notification - basic
gem 'unread'
#id3 tag reader for songs
gem 'libv8', '~> 3.11.8'
#admin interface
gem 'activeadmin'
#gravatar images for users with no profile picture
gem 'gravatar_image_tag'
#amazon s3 for song storage
gem 'aws-sdk'
#authentication for twitter
gem 'omniauth-twitter'
#pretty urls
gem 'friendly_id'
gem 'tire'
group :development do
gem 'rspec-rails'
gem 'nifty-generators'
gem 'annotate'
gem 'faker'
end
group :test do
gem 'rspec-rails'
gem 'webrat'
gem 'spork', '~> 0.9.0.rc'
gem 'factory_girl_rails'
gem 'watchr'
end
#?
gem 'progress_bar'
#web intents - twitter
gem 'tweet-button'
#like buttons
gem 'facebook_share'
#rails paypal interfacing
gem 'activemerchant', :require => 'active_merchant'
#gem 'bootstrap-will_paginate'
gem 'bootstrap-kaminari-views'
gem 'omniauth-facebook'
gem 'simple_form'
gem 'country_select'
# gem 'tiny_tds'
# gem 'activerecord-sqlserver-adapter'
# gem 'ruby-odbc'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
gem 'debugger'
group :test do
# Pretty printed test output
gem 'turn', :require => false
gem 'minitest'
end
gem "mocha", :group => :test
再次感谢您,如果我可以提供任何信息来帮助解决此问题,请告诉我。