\curl -L https://get.rvm.io | bash -s stable
当我执行
bundle
时,它会提示:Enter your password to install the bundled RubyGems to your system:
我尝试使用 "ERROR: While executing gem … (Gem::FilePermissionError)" 中的答案,但并没有解决问题。
然后,在尝试手动安装 gem 时,我遇到了以下问题:
Gem::InstallError: nokogiri requires Ruby version >= 1.9.2.
An error occurred while installing nokogiri (1.6.0), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.0'` succeeds before bundling.
然后运行 gem install nokogiri -v '1.6.0'
返回:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
我在Stack Overflow上查看了所有类似的帖子,但它们都没有解决问题。我错过了什么?