Issue #18205 has been updated by Moses Mendoza.

Status changed from Re-opened to Merged - Pending Release
Target version set to 3.4.0

The master branches of puppet, facter, and hiera should now target 
/Library/Ruby/Site.  We currently drop their library files in 
/usr/lib/ruby/site_ruby/1.8 on OSX, which is a symlink to 
/Library/Ruby/Site/1.8. As some have discovered, the varying state of the 
symlinks seems to break puppet occasionally. Also, on 10.9, 1.8 will not be in 
the load path, because it will be ruby 2.0.0.  The fix that has been merged is 
to just install into /Library/Ruby/Site (the equivalent of 
/usr/lib/ruby/site_ruby). This is in the load path of the standard ruby on 
every OS from 10.6 (and I think 10.5?) on up. Since puppet, facter and hiera 
will work on all rubies shipped with supported versions of OSX, this will "just 
work".

The related PRs are:  
for preflight:  
   <https://github.com/puppetlabs/packaging/pull/174>  
   <https://github.com/puppetlabs/puppet/pull/1830>  
   <https://github.com/puppetlabs/facter/pull/512>  
   <https://github.com/puppetlabs/hiera/pull/144>  
 
for new install target:  
   <https://github.com/puppetlabs/hiera/pull/148>  
   <https://github.com/puppetlabs/facter/pull/527>  
   <https://github.com/puppetlabs/puppet/pull/1856>  

These have all been merged into master branches, which means the next releases 
off of master from the projects should include these changes.

----------------------------------------
Bug #18205: Ruby libraries are broken under osx mountain lion
https://projects.puppetlabs.com/issues/18205#change-96986

* Author: Ben Ford
* Status: Merged - Pending Release
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 3.4.0
* Affected Puppet version: 2.7.20
* Keywords: 
* Branch: 
----------------------------------------
See 
https://ask.puppetlabs.com/question/67/unable-to-run-puppet-on-osx-mountain-lion/

Puppet opensource cannot require libraries because the rubylib has apparently 
changed. Any puppet scripts exit with:
`/usr/bin/puppet:3:in `require': no such file to load -- 
puppet/util/command_line (LoadError)
from /usr/bin/puppet:3`

As a hacky workaround, I made symlinks, like

    sudo ln -s /usr/lib/ruby/site_ruby/1.8/puppet 
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/site_ruby/1.8/puppet
    sudo ln -s /usr/lib/ruby/site_ruby/1.8/puppet.rb 
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/site_ruby/1.8/puppet.rb
    sudo ln -s /usr/lib/ruby/site_ruby/1.8/semver.rb 
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/site_ruby/1.8/semver.rb





-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to