开发者

Heroku and RoR server on Ubuntu 64bit 11.04

开发者 https://www.devze.com 2023-03-06 11:51 出处:网络
So I want to deploy my app to Heroku, registered the account and did other necessary things. But I ran on a problem running command heroku keys:add. Here\'s the errors I get:

So I want to deploy my app to Heroku, registered the account and did other necessary things. But I ran on a problem running command heroku keys:add. Here's the errors I get:

ruby@Rubuntu:~/rails_projects/first_app$ heroku keys:add
/home/ruby/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- readline (LoadError)
from /home/ruby/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/ruby/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/heroku-2.1.4/lib/heroku/command/run.rb:1:in `<top (required)>'
from /home/ruby/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/ruby/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/ruby/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/heroku-2.1.4/lib/heroku/command.rb:17:in `block in load'
from /home/ruby/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/heroku-2.1.4/lib/heroku/command.rb:16:in `each'
from /home/ruby/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/heroku-2.1.4/lib/heroku/command.rb:16:in `load'
from /home/ruby/开发者_如何学编程.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/heroku-2.1.4/bin/heroku:13:in `<top (required)>'
from /home/ruby/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/bin/heroku:19:in `load'
from /home/ruby/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/bin/heroku:19:in `<main>'

Help me out please!

PS! I am learning RoR using this book: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec:install_rubygems


Solution here


It looks like this is a fairly common problem on Ubuntu. From this post on another forum:

On my system Ubuntu (Hardy 8.04) I required libncurses5-dev and libreadline5-dev (installed with apt-get install . Re-run "ruby extconv.rb" and it will show you whether anything else is missing, or create a makefile. Once you have your makefile, run make, then make install.


Using rvm solved all the problems.

Install RVM with ruby: $ \curl -L https://get.rvm.io | bash -s stable --ruby

Additionally with rails:

$ \curl -L https://get.rvm.io | bash -s stable --rails

$ gem install heroku

$heroku login
0

精彩评论

暂无评论...
验证码 换一张
取 消