Issue #6948 has been updated by R.I. Pienaar.

The path setting in the ini script should go, I keep meaning to remove it.

Your ruby should do the right thing, /usr/bin/env should load the right ruby 
and the ruby itself should know where its libs are.   

For pe I guess we might need a patch to use the pe specific ruby though in the 
hash-bangs since users systems will not use the PE ruby for cli stuff?  But 
with that in place the pe ruby should have the right paths for the operating 
system in use, if not then the ruby build is busted and we should not fix that 
by monkeying around in the init scripts.
----------------------------------------
Bug #6948: thread.so in pe-ruby throws error.
https://projects.puppetlabs.com/issues/6948

Author: Cody Herriges
Status: Investigating
Priority: Normal
Assignee: 
Category: 
Target version: 
Keywords: 
Branch: 
Affected PE version: 


When trying to use the pe-ruby with MCollective I have to add the following 
paths to the RUBYLIB that is sets in it's initscript.

    
/opt/puppet/lib:/opt/puppet/lib/ruby/1.8/:/opt/puppet/lib/ruby/site_ruby/1.8/:/opt/puppet/lib/ruby/1.8/i386-linux

Starting the server daemon results in the following error in thread.so.

    [root@localhost 1.8]# /usr/sbin/mcollectived
    /opt/puppet/lib/ruby/1.8/i386-linux/thread.so: 
/opt/puppet/lib/ruby/1.8/i386-linux/thread.so: undefined symbol: 
rb_eThreadError - /opt/puppet/lib/ruby/1.8/i386-linux/thread.so (LoadError)
      from /opt/puppet/lib/ruby/1.8/thread.rb:5
      from /opt/puppet/lib/ruby/site_ruby/1.8/rubygems.rb:10:in `require'
      from /opt/puppet/lib/ruby/site_ruby/1.8/rubygems.rb:10
      from /usr/lib/ruby/site_ruby/1.8/mcollective.rb:1:in `require'
      from /usr/lib/ruby/site_ruby/1.8/mcollective.rb:1
      from /usr/sbin/mcollectived:3:in `require'
      from /usr/sbin/mcollectived:3


-- 
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to