2012-02-18 61 views
3

我已經在其他博客和stackoverflow線程中看到過這個問題,但沒有人似乎有答案。我試圖運行的Heroku和收到此錯誤:「no such file to load - net/https」 - Heroku,Ruby,Ubuntu 10.04

/usr/local/heroku/vendor/gems/rest-client-1.6.1/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 /usr/local/heroku/vendor/gems/rest-client-1.6.1/lib/restclient.rb:5:in `<top (required)>' 
from /usr/local/heroku/vendor/gems/rest-client-1.6.1/lib/rest_client.rb:2:in `require' 
from /usr/local/heroku/vendor/gems/rest-client-1.6.1/lib/rest_client.rb:2:in `<top (required)>' 
from /usr/local/heroku/lib/heroku/client.rb:2:in `require' 
from /usr/local/heroku/lib/heroku/client.rb:2:in `<top (required)>' 
from /usr/local/heroku/lib/heroku.rb:3:in `require' 
from /usr/local/heroku/lib/heroku.rb:3:in `<top (required)>' 
from /usr/local/heroku/lib/heroku/cli.rb:1:in `require' 
from /usr/local/heroku/lib/heroku/cli.rb:1:in `<top (required)>' 
from /usr/bin/heroku:29:in `require' 
from /usr/bin/heroku:29:in `<main>' 

問題是,libopenssl,紅寶石已經是最新版本。

有沒有人遇到過這個問題?

回答

13

我只是在我的Ubuntu 10.04類似的問題,固定這樣說:

編輯:

更快的解決辦法: 檢查/usr/local/heroku/bin/heroku什麼版本的紅寶石它使用 我:

#!/usr/bin/env ruby1.9.1 

然後安裝正確的lib:

$ sudo apt-get install libopenssl-ruby1.9.1 

老:

安裝RVM:http://beginrescueend.com/rvm/install/

要〜/ .bashrc add:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" 

運行:

$ source ~/.bachrc 

然後:

$ rvm remove 1.9.2 
$ rvm pkg install openssl 
$ rvm install 1.9.2 -C --with-openssl-dir=$HOME/.rvm/usr 

運行最後一個命令我有這個輸出後,請注意紅寶石1.9.2-P290:

Installing Ruby from source to: /my/home/dir/.rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s) 

然後編輯/usr/local/heroku/bin/heroku 在第一線的變化:

#!/usr/bin/env ruby1.9.1 

要:

#!/usr/bin/env ruby-1.9.2-p290 

,你可能需要安裝一些缺少的庫,所有這一切工作,這將有助於查找

$ rvm notes 

我希望這有幫助。

0

我猜測它可能是一些權限問題在這裏,你應該更好地解釋你如何安裝到您的紅寶石,其次檢查是否libopenssl,紅寶石是當前用戶的路徑,如果它不把它添加到它的路徑,你的錄取率很低,這可能是爲什麼人們選擇不回覆您的問題

相關問題