Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get Heroku to work on Ubuntu 10.10 (using VirtualBox on Windows machine)?

I'm a newbie following the RailsTutorial.org program and have installed/setup rvm, ruby 1.9.2,rails, curl, git and created my first app and pushed it to github (so the SSH key is fine).

The next step is deploying to Heroku, which is killing me:

gem install Heroku

works fine but I get this error after "heroku keys:add" or "heroku create":

    [app_first (master)]$ heroku keys:add
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- readline (LoadError)
 from <internal:lib/rubygems/custom_require>:29:in `require'
 from /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/heroku-1.11.0/lib/heroku/commands/app.rb:1:in `<top (required)>'
 from <internal:lib/rubygems/custom_require>:29:in `require'
 from <internal:lib/rubygems/custom_require>:29:in `require'
 from /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/heroku-1.11.0/lib/heroku/command.rb:5:in `block in <top (required)>'
 from /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/heroku-1.11.0/lib/heroku/command.rb:5:in `each'
 from /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/heroku-1.11.0/lib/heroku/command.rb:5:in `<top (required)>'
 from <internal:lib/rubygems/custom_require>:29:in `require'
 from <internal:lib/rubygems/custom_require>:29:in `require'
 from /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/gems/heroku-1.11.0/bin/heroku:7:in `<top (required)>'
 from /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/bin/heroku:19:in `load'
 from /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/bin/heroku:19:in `<main>

My guess is it's something to do with missing or misplaced gems, but I'm a total rookie so the guess may be way off. here's the gem environment:

[app_first (master)]$ gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.7
  - RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [i686-linux]
  - INSTALLATION DIRECTORY: /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial
  - RUBY EXECUTABLE: /home/john/.rvm/rubies/ruby-1.9.2-p0/bin/ruby
  - EXECUTABLE DIRECTORY: /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-linux
  - GEM PATHS:
     - /home/john/.rvm/gems/ruby-1.9.2-p0@rails3tutorial
     - /home/john/.rvm/gems/ruby-1.9.2-p0@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

Any ideas? Grateful in advance.

like image 836
John Avatar asked Oct 25 '10 18:10

John


1 Answers

Got it! Or rather, a buddy got it for me. Here's a link to the solution.

like image 76
John Avatar answered Sep 19 '22 13:09

John