无法通过Bundler安装宝石(推送到Heroku)

时间:2014-06-20 13:15:23

标签: ruby-on-rails ruby git heroku

在将我的Rails 4项目推送到GIT时出现问题:

johann@johann-R430-P430-R480:~/projects/spread$ git push heroku master
Fetching repository, done.
Counting objects: 133, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (90/90), done.
Writing objects: 100% (101/101), 266.75 KiB | 175 KiB/s, done.
Total 101 (delta 25), reused 0 (delta 0)

-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.6.3
       Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
       Fetching gem metadata from https://rubygems.org/........
       Fetching additional metadata from https://rubygems.org/..
       Could not find tomz-libsvm-ruby-swig-0.3.3 in any of the sources
       Bundler Output: Fetching gem metadata from https://rubygems.org/........
       Fetching additional metadata from https://rubygems.org/..
       Could not find tomz-libsvm-ruby-swig-0.3.3 in any of the sources
 !
 !     Failed to install gems via Bundler.
 !

 !     Push rejected, failed to compile Ruby app

该应用程序完美地运行localhost,包括tomz-libsvm-ruby-swig-0.3.3 可能有什么不对? :[ 提前谢谢!

1 个答案:

答案 0 :(得分:0)

修改您的Gemfile以添加替代来源...

所以不是......

source 'https://rubygems.org'
你应该......

source 'https://rubygems.org'
source 'http://gems.github.com'

然后Heroku应该能够找到宝石。