我正在关注Ruby on Rails教程http://railstutorial.org/chapters/beginning#sec:1.4.1,并且一切都很顺利,直到我试图让我的应用继续使用Heroku。Heroku gem不能与RVM兼容
我安装的Heroku,这工作得很好,但现在当我运行heroku keys:add
或任何其他Heroku的命令,我收到以下错误:
/home/sirswap/.rvm/gems/[email protected]/gems/rest-client-1.4.2/lib/restclient.rb:9:in `rescue in <top (required)>':
no such file to load -- net/https. Try running apt-get install libopenssl-ruby (LoadError)
from /home/sirswap/.rvm/gems/[email protected]/gems/rest-client-1.4.2/lib/restclient.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/sirswap/.rvm/gems/[email protected]/gems/rest-client-1.4.2/lib/rest_client.rb:2:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /home/sirswap/.rvm/gems/[email protected]/gems/heroku-1.9.14/lib/heroku/client.rb:2:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /home/sirswap/.rvm/gems/[email protected]/gems/heroku-1.9.14/lib/heroku.rb:3:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /home/sirswap/.rvm/gems/[email protected]/gems/heroku-1.9.14/bin/heroku:6:in `<top (required)>'
from /home/sirswap/.rvm/gems/[email protected]/bin/heroku:19:in `load'
from /home/sirswap/.rvm/gems/[email protected]/bin/heroku:19:in `<main>'
我做了错误信息说什么,并安装libopenssl,红宝石,但是heroku仍然没有工作。
我已经做了搜索,发现以下两个页面,其试图打击Heroku的错误: http://www.mail-archive.com/[email protected]/msg05001.html http://blog.project-sierra.de/archives/1534
我跟着这些网页上的说明(这是相同的),但仍的Heroku没有按没有工作。
我通常在windows上做我的工作,所以在Ubuntu上我对所有东西都有点新鲜感。这里是我的ruby环境:
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [i686-linux]
- INSTALLATION DIRECTORY: /home/sirswap/.rvm/gems/[email protected]
- RUBY EXECUTABLE: /home/sirswap/.rvm/rubies/ruby-1.9.2-p0/bin/ruby
- EXECUTABLE DIRECTORY: /home/sirswap/.rvm/gems/[email protected]/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /home/sirswap/.rvm/gems/[email protected]
- /home/sirswap/.rvm/gems/[email protected]
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
我在运行ubuntu 10.04。
任何帮助或建议,为下一步将不胜感激:)
感谢您的意见家伙,我其实是在与面试和旅行的那一刻真的很忙,所以不得不晚了一点回应你的答案,看看我:) – 2010-09-09 11:17:24