我正在嘗試使用jekyll創建一個博客。我使用的是Ubuntu 11.10,但是在安裝了ruby gem並嘗試在我的服務器本地運行它之後,出現以下錯誤: /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:926:in`report_activate_error' :找不到Jekyll在Ubuntu 11.10上安裝錯誤
RubyGem jekyll (>= 0) (Gem::LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:244:in `activate_dep'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:236:in `activate'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:1307:in `gem'
from /usr/local/bin/jekyll:18
我認爲這是一個mu紅寶石寶石路徑的問題。 我的寶石ENV輸出如下:
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.24
- RUBY VERSION: 1.9.3 (2012-02-16 patchlevel 125) [i686-linux]
- INSTALLATION DIRECTORY: /home/swaroop/.rvm/gems/[email protected]
- RUBY EXECUTABLE: /home/swaroop/.rvm/rubies/ruby-1.9.3-p125/bin/ruby
- EXECUTABLE DIRECTORY: /home/swaroop/.rvm/gems/[email protected]/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /home/swaroop/.rvm/gems/[email protected]
- /home/swaroop/.rvm/gems/[email protected]
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
如何糾正呢?
感謝會嘗試這樣做! – swaroopsm 2012-08-08 13:44:24