Installing Ruby On Rails - Issues with gem (and no RVM)

Posted by JXPheonix on Stack Overflow See other posts from Stack Overflow or by JXPheonix
Published on 2012-11-20T18:31:28Z Indexed on 2012/11/22 5:01 UTC
Read the original article Hit count: 332

Filed under:
|
|

I'm having this issue whenever i run "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 and Rubygems were both installed from source. I've installed libyaml from source and from apt-get. I'm running ubuntu 12.04. I am NOT running RVM as far as I know (trying "rvm" returns "bla bla bla not installed apt-get". I'm pretty sure this speaks of 2 separate issues but I need solutions to both. Thanks.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby