I was able to install rubygems-json as well by making the following changes:

--
# diff rubygem-json.spec rubygem-json.spec.ORIG
35,36c35,36
< BuildRequires:  rubygem-rake
< #Requires:       ruby(abi) = 1.8
---
> BuildRequires:  rubygem(rake)
> Requires:       ruby(abi) = 1.8
--

# rpm -qa | grep -i json
rubygem-json-1.4.6-1

# rpm -qa | grep -i hier
hiera-1.1.1-1

However, puppet still wont work for me:

--
# puppet agent -t
/usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- semver (LoadError)
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from /usr/lib64/ruby/site_ruby/1.8/puppet/module.rb:2
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from /usr/lib64/ruby/site_ruby/1.8/puppet/parser/files.rb:1
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from /usr/lib64/ruby/site_ruby/1.8/puppet/parser/templatewrapper.rb:3
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from /usr/lib64/ruby/site_ruby/1.8/puppet/parser/scope.rb:6
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from /usr/lib64/ruby/site_ruby/1.8/puppet/parser/functions.rb:2
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from /usr/lib64/ruby/site_ruby/1.8/puppet/parser/parser_support.rb:8
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from grammar.ra:796
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from /usr/lib64/ruby/site_ruby/1.8/puppet/parser.rb:1
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from /usr/lib64/ruby/site_ruby/1.8/puppet.rb:148
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from /usr/lib64/ruby/site_ruby/1.8/puppet/util/command_line.rb:12
    from /usr/bin/puppet:3:in `require'
    from /usr/bin/puppet:3
--

Not really sure where to go from here.

Regards,
-J

On Wed, Dec 26, 2012 at 10:51 PM, Jagga Soorma <jagg...@gmail.com> wrote:

> Okay, so now I am running into more problems.  I installed the new puppet
> rpm without any issues, but when I try to run it I get the following errors:
>
> --
> # puppet agent -t
> /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require': no such file to load -- semver (LoadError)
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>     from /usr/lib64/ruby/site_ruby/1.8/puppet/module.rb:2
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>     from /usr/lib64/ruby/site_ruby/1.8/puppet/parser/files.rb:1
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>     from /usr/lib64/ruby/site_ruby/1.8/puppet/parser/templatewrapper.rb:3
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>     from /usr/lib64/ruby/site_ruby/1.8/puppet/parser/scope.rb:6
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>     from /usr/lib64/ruby/site_ruby/1.8/puppet/parser/functions.rb:2
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>     from /usr/lib64/ruby/site_ruby/1.8/puppet/parser/parser_support.rb:8
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>     from grammar.ra:796
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>     from /usr/lib64/ruby/site_ruby/1.8/puppet/parser.rb:1
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>     from /usr/lib64/ruby/site_ruby/1.8/puppet.rb:148
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>     from /usr/lib64/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>     from /usr/lib64/ruby/site_ruby/1.8/puppet/util/command_line.rb:12
>     from /usr/bin/puppet:3:in `require'
>     from /usr/bin/puppet:3
> --
>
> Here are the ruby versions and I do have 1.8.7 installed which is needed
> for puppet 3.x versions:
>
> --
>
> # rpm -qa | grep -i ruby
> ruby-devel-1.8.7.p72-5.21
> rubygems-1.3.1-2.10
> ruby-doc-ri-1.8.7.p72-5.21
> ruby-shadow-1.4.1-2.2
> rubygem-rake-0.8.3-1.20
> ruby-1.8.7.p72-5.21
> --
>
> I don't have rubygem-json installed so thought I would build it and run
> into this issue:
>
> --
> # rpmbuild -bb rubygem-json.spec
> error: Failed build dependencies:
>     rubygem(rake) is needed by rubygem-json-1.4.6-1.x86_64
> --
>
> However, rubygem(rake) is installed:
>
> rubygem-rake-0.8.3-1.20
>
> Any help would be greatly appreciated.
>
> Thanks,
> -J
>
>
> On Wed, Dec 26, 2012 at 10:36 PM, Jagga Soorma <jagg...@gmail.com> wrote:
>
>> Thanks for providing that spec file, lead me to add the following to the
>> files section of my spec file:
>>
>> %{_bindir}/extlookup2hiera
>>
>> That seems to have solved the problem.  Will continue to build using my
>> spec file with that change and hopefully that will work.
>>
>> Thanks again for sharing that spec file.
>>
>> Regards,
>> -J
>>
>>
>> On Wed, Dec 26, 2012 at 10:03 PM, banuchka <tyrche...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> try this SPEC https://dl.dropbox.com/u/21671126/puppet-badoo.spec
>>> and that source https://dl.dropbox.com/u/21671126/puppet-3.0.1.tar.gz
>>>
>>> works fine on sles 11.*
>>>
>>>
>>> On Dec 27, 2012, at 7:53 AM, Jagga Soorma wrote:
>>>
>>> Hi Guys,
>>>
>>> I am new to puppet and have a mix of both RHEL5.x and SLES11.x servers
>>> in my environment.  I have been able to build the puppet client with some
>>> modifications on RHEL5.x with the spec files just fine but can't seem to
>>> build for SLES11.x.  I was wondering if anyone here is using the puppet 3.x
>>> client with SLES11 yet?  If so, do you know what the best way is to install
>>> all the dependencies and the puppet client for SLES11.x.
>>>
>>> Any help would be appreciated.
>>>
>>> Thanks,
>>> -J
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Puppet Users" group.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/puppet-users/-/UrZPC54IbswJ.
>>> To post to this group, send email to puppet-users@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> puppet-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/puppet-users?hl=en.
>>>
>>>
>>>  --
>>> 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+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/puppet-users?hl=en.
>>>
>>
>>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to