我是RailsTutorial.org程序的新手,已安装/设置rvm,ruby 1.9.2,rails,curl,git并创建了我的第一个应用程序并将其推送到github(所以SSH密钥很好).
下一步是部署到Heroku,这让我很伤心:
gem install Heroku
工作正常,但我在“heroku keys:add”或“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>
我的猜测是它与失踪或错位的宝石有关,但我是一个完全的新秀所以猜测可能会有所改变.这是宝石环境:
[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/
有任何想法吗?提前感恩.
解决方法
得到它了!或者更确切地说,一个伙伴得到了它.这是一个
link to the solution.