- From: Joshua Timberman <
>
- To:
- Subject: [chef] Re: Ruby, Chef, Omnibus and you!
- Date: Fri, 30 Dec 2011 15:23:35 -0700
Hello!
On Dec 30, 2011, at 9:05 AM, Burkholder, Peter wrote:
>
> $: << "/usr/lib64/ruby/site_ruby/1.8/x86_64-linux/"
>
>
but then.....
>
>
chef > require 'selinux'
>
=> true
>
chef > Selinux.lgetfilecon("/etc/ntp.conf")
>
TypeError: in method 'lgetfilecon', argument 1 of type 'char const *'
>
from (irb):3:in `lgetfilecon'
>
from (irb):3
>
from
>
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/shef.rb:73:in
>
`block in start'
>
from
>
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/shef.rb:72:in
>
`catch'
>
from
>
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/lib/chef/shef.rb:72:in
>
`start'
>
from
>
/opt/opscode/embedded/lib/ruby/gems/1.9.1/gems/chef-0.10.8/bin/shef:34:in
>
`<top (required)>'
>
from /opt/opscode/bin/shef:19:in `load'
>
from /opt/opscode/bin/shef:19:in `<main>'
>
>
So it loads, but it doesn't work. Hmmm.
Ah, of course. The package compiled against the version of Ruby available in
the distribution, since is a C extension, so in order to work with the Ruby
in the Chef Full Stack installation, it needs to be recompiled with that
version of Ruby (1.9.2p180). That's fine in many environments - to build C
extension RubyGems on systems when installing the gem, but not in
environments where C compiler and build toolchains are prohibited from
servers by security policy.
--
Opscode, Inc
Joshua Timberman, Technical Program Manager
IRC, Skype, Twitter, Github: jtimberman
- [chef] Ruby, Chef, Omnibus and you!, Joshua Timberman, 12/27/2011
- [chef] Re: Ruby, Chef, Omnibus and you!, Kyle Bader, 12/27/2011
- [chef] Re: Ruby, Chef, Omnibus and you!, Alex Soto, 12/27/2011
- [chef] Re: Re: Ruby, Chef, Omnibus and you!, Jesse Nelson, 12/27/2011
- [chef] Re: Re: Re: Ruby, Chef, Omnibus and you!, Ranjib Dey, 12/27/2011
- [chef] Re: Re: Re: Re: Ruby, Chef, Omnibus and you!, Burkholder, Peter, 12/29/2011
- [chef] Re: Ruby, Chef, Omnibus and you!, Joshua Timberman, 12/29/2011
- [chef] Re: Re: Ruby, Chef, Omnibus and you!, Burkholder, Peter, 12/30/2011
- [chef] Re: Ruby, Chef, Omnibus and you!, Joshua Timberman, 12/30/2011
- [chef] Re: Re: Ruby, Chef, Omnibus and you!, Alex Howells, 12/30/2011
- [chef] Re: Re: Ruby, Chef, Omnibus and you!, Alex Howells, 12/30/2011
- [chef] Re: Re: Re: Ruby, Chef, Omnibus and you!, Brad Knowles, 12/30/2011
[chef] Re: Ruby, Chef, Omnibus and you!, Erik Hollensbe, 12/29/2011
[chef] Re: Ruby, Chef, Omnibus and you!, Andrea Campi, 12/29/2011
Archive powered by MHonArc 2.6.16.