每当我运行“gem install rails”时,我都会遇到这个问题:
usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
Ruby 和 Rubygems 都是从源代码安装的。我已经从源代码和 apt-get 安装了 libyaml。我正在运行 ubuntu 12.04。据我所知,我没有运行 RVM(尝试“rvm”返回“bla bla bla not installed apt-get”。我很确定这涉及两个单独的问题,但我需要解决这两个问题。谢谢。