成功安装了 Homebrew 成功安装了 ruby git sqlite 接下来设置了环境变量 $ export PATH=/usr/local/Cellar/ruby/1.9.3-p327/bin:$PATH
然后在执行 gem 的时候报错了
gem -v 执行错误如下
/usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/1.9.1/psych.rb:203:in parse': (<unknown>): could not find expected ':' while scanning a simple key at line/Cellar/ruby/1.9.3-p327/lib/ruby/1.9.1/rubygems/config_file.rb:191:in
initialize'
from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/1.9.1/rubygems/gem_runner.rb:78:in new'
from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/1.9.1/rubygems/gem_runner.rb:78:in
do_configuration'
from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/1.9.1/rubygems/gem_runner.rb:51:in run'
from /usr/local/bin/gem:21:in
请问这个怎么解决?我已经自己谷歌了,没有找到与我一样的错误