Re: [Puppet Users] How do you distribute ruby-augeas for ruby-entreprise?

Mohamed Lrhazi
Tue, 15 Mar 2011 15:32:11 -0000

I was hoping for one magic command, like :

/opt/ruby-enterprise/bin/gem rebuild-gem  --no-rdoc --no-ri
/tmp/ruby-augeas-0.3.0.gem

I guess I have to learn and do it myself. thanks a lot for the tips and refs.

Mohamed.


On Tue, Mar 15, 2011 at 11:23 AM, Naresh V <nareshov@gmail.com>
wrote:
> On 15 March 2011 20:38, Mohamed Lrhazi <lrhazi@gmail.com> wrote:
>> We are using ruby-entreprise, instead of redhat''s default
ruby.... I
>> was trying to deploy the needed gem using:
>>
>> /opt/ruby-enterprise/bin/gem install  --no-rdoc --no-ri
>> /tmp/ruby-augeas-0.3.0.gem
>>
>> But found out this would require gcc to be installed!
>>
>> How can I preb-build this gem to remove the need for gcc on the nodes?
>
> Why not build REE-specific rubygem-$GEM RPMs?
>
> You could use gem2rpm to create spec files and update
''ruby'', ''gem''
> with ''/opt/ruby-enterprise/bin/ruby'',
''/opt/ruby-enterprise/bin/gem''
> in the spec file (or even make a default gem2rpm template with that)
> (customise as much as you want) and build your RPMs.
>
> (relevant:
http://zeusville.wordpress.com/2010/11/05/gem2rpm-and-development-deps/
> )
>
>
> -Naresh V.
>
> --
> You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
>
>