2012-04-19 212 views
1

我格式化我的計算機和轉移我所有的RoR應用到我的新Lubuntu系統。 我的Ubuntu與統一。 (仍然是一個Linux系統)。我已經安裝了rvm,ruby,rails,並且它們都工作正常!然後在運行「rails s」之前運行「bundle install」來測試我的應用程序。 這是我得到Ruby on Rails和SSL錯誤

Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Please include the full output of the command, your Gemfile and Gemfile.lock. Thanks! 
/home/user/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- openssl (LoadError) 

任何幫助嗎?

這是命令和apt-get安裝OpenSSL的給我:

Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
openssl is already the newest version. 
The following packages were automatically installed and are no longer required: 
    libreadline-gplv2-dev git-man libncurses5-dev libnspr4-0d libtinfo-dev git libreadline5 zlib1g-dev liberror-perl libsqlite3-dev 
Use 'apt-get autoremove' to remove them. 
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 
+0

確實有安裝了OpenSSL?命令和apt-get安裝OpenSSL的 – 2012-04-19 18:07:48

+0

我已經編輯我的答案 – 2012-04-19 18:11:17

+0

考慮尋找在這個[問題](http://stackoverflow.com/questions/8642368/why-require-mongo-gives-me-loaderror-no-such-file -to-負載OpenSSL的)。 – 2012-04-19 18:17:30

回答

3

你用RVM安裝了Ruby版本之前安裝的軟件包?

嘗試取出紅寶石版本,運行

sudo apt-get install libssl-dev openssl 

,然後安裝Ruby版本再次

+0

感謝它工作正常! – 2012-04-19 18:39:56