Skip to content

Instantly share code, notes, and snippets.

@jeffmccune
Last active December 22, 2015 07:58
Show Gist options
  • Save jeffmccune/6441335 to your computer and use it in GitHub Desktop.
Save jeffmccune/6441335 to your computer and use it in GitHub Desktop.
Ops Puppet Ruby

Missing Psych? Is there an updated Package available?

macosx:~ localadmin$ export PATH=/opt/operations/bin:$PATH
macosx:~ localadmin$ which gem
/opt/operations/bin/gem
macosx:~ localadmin$ gem list
/opt/operations/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.

*** LOCAL GEMS ***

bigdecimal (1.1.0)
io-console (0.3)
json (1.5.4)
minitest (2.5.1)
rake (0.9.2.2)
rdoc (3.9.4)

Is Puppet not installed as a Gem? How is Facter installed?

macosx:~ localadmin$ gem which puppet
/opt/operations/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.
/opt/operations/lib/ruby/site_ruby/1.9.1/puppet.rb
macosx:~ localadmin$ gem which facter
/opt/operations/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.
/opt/operations/lib/ruby/site_ruby/1.9.1/facter.rb

Bundler does seem to install cleanly:

macosx:~ localadmin$ sudo /opt/operations/bin/gem install bundler
/opt/operations/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.
Fetching: bundler-1.3.5.gem (100%)
Successfully installed bundler-1.3.5
1 gem installed
Installing ri documentation for bundler-1.3.5...
Installing RDoc documentation for bundler-1.3.5...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment