我在使用heroku上的rails应用程序时遇到了麻烦。在我的本地服务器中,我没有问题执行“捆绑安装”,我的应用程序运行良好。 当我运行“git push heroku master”时,我有这个错误
Could not find libv8-3.3.10.3 in any of the sources ! ! Failed to install gems via Bundler. ! ! Heroku push rejected, failed to compile Ruby/rails app
我的本地配置是: - Mac OS Lion - Rails 3.1.0 - Ruby 1.9.2
我的heroku堆栈是Cedar。
我的Gemfile是:
source 'http://rubygems.org'
gem 'rails', '3.1.0'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
# gem 'sass-rails', '~> 3.1.4'
gem 'coffee-rails', '~> 3.1.0'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
gem "rspec-rails", ">= 2.7.0", :group => [:development, :test]
gem "database_cleaner", ">= 0.6.7", :group => :test
gem "mongoid-rspec", ">= 1.4.4", :group => :test
gem "factory_girl_rails", ">= 1.3.0", :group => :test
gem "cucumber-rails", ">= 1.1.1", :group => :test
gem "capybara", ">= 1.1.1", :group => :test
gem "launchy", ">= 2.0.5", :group => :test
gem "bson_ext", ">= 1.3.0"
gem "mongoid", ">= 2.0.1"
gem "omniauth", ">= 0.3.0"
gem 'omniauth-facebook'
gem "devise", ">= 1.4.7"
gem "fb_graph", ">= 2.2.3"
gem 'less-rails-bootstrap'
gem 'chronic'
gem 'thin'
gem 'heroku'
在我的本地Gemfile.lock中,我安装了libv8(3.3.10.4)。
我尝试了“捆绑更新”,我尝试在我的Gemfile中添加“libv8”。什么都行不通。 有没有人有想法?
更新:
My Gemfile.lock包含两次libv8:
GEM
specs
...
libv8 (3.3.10.4)
...
therubyracer (0.9.9)
libv8 (~> 3.3.10)
...
Gemfile.lock的“DEPENDENCIES”部分没有任何内容:
DEPENDENCIES
bson_ext (>= 1.3.0)
capybara (>= 1.1.1)
chronic
coffee-rails (~> 3.1.0)
cucumber-rails (>= 1.1.1)
database_cleaner (>= 0.6.7)
devise (>= 1.4.7)
factory_girl_rails (>= 1.3.0)
fb_graph (>= 2.2.3)
heroku
jquery-rails
launchy (>= 2.0.5)
less-rails-bootstrap
mongoid (>= 2.0.1)
mongoid-rspec (>= 1.4.4)
omniauth (>= 0.3.0)
omniauth-facebook
rails (= 3.1.0)
rspec-rails (>= 2.7.0)
thin
uglifier (>= 1.0.3)
“gem list libv8”的结果
*** LOCAL GEMS ***
libv8 (3.3.10.4 x86_64-darwin-11)
“宝石环境”的结果
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.15
- RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-darwin11.2.0]
- INSTALLATION DIRECTORY: /Users/user/.rvm/gems/ruby-1.9.2-p290
- RUBY EXECUTABLE: /Users/user/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
- EXECUTABLE DIRECTORY: /Users/user/.rvm/gems/ruby-1.9.2-p290/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-11
- GEM PATHS:
- /Users/user/.rvm/gems/ruby-1.9.2-p290
- /Users/user/.rvm/gems/ruby-1.9.2-p290@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
答案 0 :(得分:1)
你需要清理你的捆绑包并确保其不再存在:
http://devcenter.heroku.com/articles/rails31_heroku_cedar#troubleshooting
bundle clean