通过 RVM 安装 Ruby 2.3.0 时出错
Error installing Ruby 2.3.0 via RVM
root@bubbling-brook:/# gem update --system
/usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/psych.rb:370:in `parse': (<unknown>): mapping values are not allowed in this context at line 11 column 52 (Psych::SyntaxError)
from /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/psych.rb:370:in `parse_stream'
from /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/psych.rb:318:in `parse'
from /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/psych.rb:245:in `load'
from /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/config_file.rb:333:in `load_file'
from /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/config_file.rb:198:in `initialize'
from /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/gem_runner.rb:74:in `new'
from /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/gem_runner.rb:74:in `do_configuration'
from /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/gem_runner.rb:39:in `run'
from /usr/local/rvm/rubies/ruby-2.2.2/bin/gem:21:in `<main>'
谁能帮我解决这个错误。我正在尝试将它安装在远程服务器上,并因这个错误而大吃一惊。我已成功安装 ruby,但 rails 出现问题。
首先,检查您的 rvm,如果找不到请尝试使用:
echo "source $HOME/.rvm/scripts/rvm" >> ~/.bash_profile
或
echo "source $HOME/.rvm/scripts/rvm" >> ~/.bashrc
加载 RVM。
终于可以使用@MattW的推荐安装了
root@bubbling-brook:/# gem update --system
/usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/psych.rb:370:in `parse': (<unknown>): mapping values are not allowed in this context at line 11 column 52 (Psych::SyntaxError)
from /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/psych.rb:370:in `parse_stream'
from /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/psych.rb:318:in `parse'
from /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/psych.rb:245:in `load'
from /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/config_file.rb:333:in `load_file'
from /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/config_file.rb:198:in `initialize'
from /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/gem_runner.rb:74:in `new'
from /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/gem_runner.rb:74:in `do_configuration'
from /usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/gem_runner.rb:39:in `run'
from /usr/local/rvm/rubies/ruby-2.2.2/bin/gem:21:in `<main>'
谁能帮我解决这个错误。我正在尝试将它安装在远程服务器上,并因这个错误而大吃一惊。我已成功安装 ruby,但 rails 出现问题。
首先,检查您的 rvm,如果找不到请尝试使用:
echo "source $HOME/.rvm/scripts/rvm" >> ~/.bash_profile
或
echo "source $HOME/.rvm/scripts/rvm" >> ~/.bashrc
加载 RVM。
终于可以使用@MattW的推荐安装了