Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have installed puppet 3.0.1 from the .dmg from puppetlabs. If I remove ruby 1.9.3, puppet works, but other things like my vim install (dependant plugins) do not.

According to 1.9.3 is supported. So whats going wrong with puppet?

% uname -a
Darwin Kusanagi.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64

% which ruby

% ruby --version
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin11.4.2]

% /usr/bin/ruby --version
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin11.0]

% brew info ruby                                                                                                                                    1 ↵
ruby: stable 1.9.3-p327, HEAD
Depends on: pkg-config, readline, gdbm, libyaml
/usr/local/Cellar/ruby/1.9.3-p327 (796 files, 17M) *
==> Options
    Install with Tcl/Tk support
    Suffix commands with "19"
    Build a universal binary
    Install documentation
==> Caveats
NOTE: By default, gem installed binaries will be placed into:

You may want to add this to your PATH.

% puppet
/usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- puppet/util/command_line (LoadError)
    from /usr/local/Cellar/ruby/1.9.3-p327/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/bin/puppet:3:in `<main>'
share|improve this question
1.9.1 has a lot of compatibility issues, which is why almost nobody uses it. You should get rid of it and use 1.9.2 or higher. – Michael Hampton Dec 13 '12 at 1:35

2 Answers 2

Here's Puppet's support matrix for ruby versions:

(UPDATE after OP updated to show error messages)

Puppet has installed itself into your system Ruby library location under /usr/lib/ruby/1.8/site_ruby/, which the homebrew ruby will not look at.

The top line of /usr/bin/puppet is #!/usr/bin/env ruby which runs the first ruby in your $PATH. So you can either adjust your $PATH variable or change that line to specifically run the system ruby, a'la:


share|improve this answer
Hey, thanks for that Eric. I've updated my question to reflect the latest information – devians Dec 13 '12 at 4:18

This is why rvm ( was invented. It's the only sane way to run ruby or develop ruby apps IMHO. Different rubies for different things.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.