Reputation: 39
I'm trying to upload my rail app to Heroku. I'm using Ruby 1.9.3. The app can be deployed okay on my local machine.
An error occurred while installing linecache19 (0.5.12), and Bundler cannot continue.
Make sure that `gem install linecache19 -v '0.5.12'` succeeds before bundling.
!
! Failed to install gems via Bundler.
!
! Heroku push rejected, failed to compile Ruby/rails app
I've tried entering this line to the Gemfile
gem 'linecache19', :git => 'git://github.com/mark-moseley/linecache'
But it doesn't seem to solve the problem.
Can someone please advise ? Thank you in advance for the help. p.s.: Really sorry for the newbie question, I'm pretty new at Ruby on Rails development.
Below is my complete Gemfile
source 'http://rubygems.org'
gem 'rails', '3.1.0'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
# for Heroku deployment - as described in Ap. A of ELLS book
group :development, :test do
gem 'sqlite3'
gem 'ruby-debug19', :require => 'ruby-debug'
end
group :production do
gem 'pg'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'therubyracer'
gem 'sass-rails', " ~> 3.1.0"
gem 'coffee-rails', "~> 3.1.0"
gem 'uglifier'
end
gem 'jquery-rails'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
gem 'haml'
gem 'linecache19', :git => 'git://github.com/mark-moseley/linecache'
Upvotes: 0
Views: 332
Reputation: 35350
linecache19
is a gem used for debugging purposes. There is no need for it in production, so you should be excluding it from the gems used in production.
Add it to the :development, :test
group you already have toward the top of your file, bundle
, and re-deploy.
group :development, :test do
gem 'sqlite3'
gem 'ruby-debug19', :require => 'ruby-debug'
gem 'linecache19', :git => 'git://github.com/mark-moseley/linecache'
end
Upvotes: 3