我正在尝试安装Jekyll并继续遇到问题。我在OSX 10.9.2上,使用ruby 2.1.1p76我收到以下错误:
jekyll
/Library/Ruby/Site/1.8/rubygems/ext/builder.rb:12: uninitialized constant Gem::UserInteraction (NameError)
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Site/1.8/rubygems/ext.rb:13
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:1431:in `build_extensions'
from /Library/Ruby/Site/1.8/rubygems/basic_specification.rb:56:in `contains_requirable_file?'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:915:in `find_by_path'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `find'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:883:in `each'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:882:in `each'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:914:in `find'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:914:in `find_by_path'
from /Library/Ruby/Site/1.8/rubygems.rb:188:in `try_activate'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:132:in `require'
from /Library/Ruby/Site/1.8/rubygems/user_interaction.rb:8
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Site/1.8/rubygems/config_file.rb:7
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:1430:in `build_extensions'
from /Library/Ruby/Site/1.8/rubygems/basic_specification.rb:56:in `contains_requirable_file?'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:915:in `find_by_path'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `find'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:883:in `each'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:882:in `each'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:914:in `find'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:914:in `find_by_path'
from /Library/Ruby/Site/1.8/rubygems.rb:188:in `try_activate'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:132:in `require'
from /Library/Ruby/Gems/1.8/gems/highline-1.6.21/lib/highline/system_extensions.rb:143
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Gems/1.8/gems/highline-1.6.21/lib/highline.rb:14
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Gems/1.8/gems/highline-1.6.21/lib/highline/import.rb:8
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Gems/1.8/gems/commander-4.1.6/lib/commander.rb:24
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Gems/1.8/gems/commander-4.1.6/lib/commander/import.rb:2
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Library/Ruby/Gems/1.8/gems/jekyll-1.4.3/bin/jekyll:6
from /usr/bin/jekyll:23:in `load'
from /usr/bin/jekyll:23
对于我可以尝试成功安装Jekyll的事情有什么建议吗?
答案 0 :(得分:0)
你说你正在尝试使用ruby 2.1.1。但是你的日志告诉我们ruby 1.8.7。
考虑到这一点,似乎你的机器上安装了2个红宝石......由homebrew安装的ruby 1.8.7和由rvm安装的ruby 2.1.1。
显然你也在ruby 1.8.7 gemset上安装了jekyll ......
所以,我建议你这样做:
gem uninstall jekyll
rvm use 2.1.1
gem install jekyll