Ask Your Question
0

librarian-puppet : bundle exec could not load puppet on Windows

asked 2014-01-29 17:55:52 -0500

BaltoStar gravatar image

updated 2014-10-03 22:49:38 -0500

Windows 7 Puppet Agent for Windows 3.4.2

In the DevKit installation instructions

https://github.com/oneclick/rubyinstaller/wiki/development-kit

it states :

NOTE: The path to your <RUBY_INSTALL_DIR> must not contain any whitespaces (like in “C:\Program Files\Ruby193”). This is very important because whitespaces in the path to your ruby installation will cause certain error messages as soon as you try to install gems which require the DevKit.

Puppet Agent for Windows by default installs Ruby to

C:\Program Files (x86)\Puppet Labs\Puppet\sys\ruby\bin

a path which clearly has spaces , so I installed to to C:\Puppet\

Then I followed DevKit install instructions , manually updating config.yml to include C:/Puppet/sys/ruby

System PATH contains C:\Puppet\bin , C:\RubyDevKit , C:\Ruby193\bin

run with Puppet Command Prompt :

>bundle exec librarian-puppet install --clean
unable to load puppet. Either install it using native packages for your
latform (eg .deb, .rpm, .dmg, etc) or as a gem (gem install puppet).
edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2014-02-20 11:20:34 -0500

joshc gravatar image

Did you bundle install first and pull in all of the dependencies first, e.g. puppet, facter, hiera, and all of the win32 gems?

What does bundle exec gem list return?

Internally, we use bundler for all of our projects, on Windows as well. See http://docs.puppetlabs.com/windows/from_source.html

edit flag offensive delete link more
0

answered 2014-10-03 22:54:20 -0500

No worries. DevKit can handle spaces. I've used it many times this way.

You are calling bundle exec, which depending on where you are calling it from could mean you are not using the gems installed by puppet and even possibly not the correct ruby.

On command prompt:

where ruby
where puppet
gem list
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-01-29 17:55:52 -0500

Seen: 752 times

Last updated: Oct 03 '14