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

I am new to RailsTutorial.org and installed / installed rvm, ruby ​​1.9.2, rails, curl, git and created my first application and clicked it on github (so the SSH key is fine).

The next step is to deploy 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 to do something with missing or inappropriate gems, but I'm a complete newbie, so guess what might be. here is the environment of the pearl:

 [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.

+6
ruby-on-rails heroku
source share
6 answers

Got! Rather, buddy got it for me. Here is a link to the solution .

+4
source share

Hey. I completed the installation process with rvm, ruby ​​1.9.2 and sqlite3. You gave up on the last step :) :)

Well my decision .. it worked for me after 2 days of fighting heroics :)

 sudo apt-get install libreadline-dev cd ~/.rvm/src/ruby-1.8.7-p249/ext/readline 

and then build the extension

 ruby extconf.rb && make && make install 
+4
source share
 gem install rb-readline 

decided it for me.

source: https://gist.github.com/1080765

+4
source share

Thanks Prozac! I did a multi-user installation of RVM on Ubuntu 11.10 The following worked for me using ruby ​​1.9.2:

 sudo apt-get install libreadline-dev cd /usr/local/rvm/src/ruby-1.9.2-p290/ext/readline/ ruby extconf.rb && make && make install 
+2
source share

Herkou's documentation is awesome. These are the instructions you want in heroku docs

0
source share

upgrade from ruby-1.9.2-p180 to ruby-1.9.2-p290 did it for me

0
source share

All Articles