The puppet 3 gem requires hiera, whose latest version requires json, which can be either json (a c extension), or json_pure (a ruby implementation). If it is the c extension, make and gcc are required to build the c components. The mkmf error usually indicates that make and/or gcc are unavailable.
On Mon, Oct 1, 2012 at 4:18 PM, Forrie <for...@gmail.com> wrote: > There's a problem installing puppet on Solaris 10 -- in this situation, we > aren't really doing anything with puppet there. > > The version we're using is: > > ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-solaris2.9] > > Here's the first error: > >>> # gem update puppet >>> >>> Updating installed gems >>> >>> Updating puppet >>> >>> Building native extensions. This could take a while... >>> >>> ERROR: Error installing puppet: >>> >>> ERROR: Failed to build gem native extension. >>> >>> >>> /opt/csw/bin/ruby18 extconf.rb >>> >>> extconf.rb:1:in `require': no such file to load -- mkmf (LoadError) >>> >>> from extconf.rb:1 >>> >>> >>> >>> Gem files will remain installed in >>> /opt/csw/lib/ruby/gems/1.8/gems/json-1.7.5 for inspection. >>> >>> Results logged to >>> /opt/csw/lib/ruby/gems/1.8/gems/json-1.7.5/ext/json/ext/generator/gem_make.out >>> >>> Nothing to update > > > > So I decided to uninstall the old version and try again: > > >>> # gem uninstall puppet >>> >>> Remove executables: >>> >>> filebucket, pi, puppet, puppetdoc, ralsh, puppetca, puppetd, >>> puppetmasterd, puppetqd, puppetrun >>> >>> >>> in addition to the gem? [Yn] y >>> >>> Removing filebucket >>> >>> Removing pi >>> >>> Removing puppet >>> >>> Removing puppetdoc >>> >>> Removing ralsh >>> >>> Removing puppetca >>> >>> Removing puppetd >>> >>> Removing puppetmasterd >>> >>> Removing puppetqd >>> >>> Removing puppetrun >>> >>> Successfully uninstalled puppet-2.7.18 > > > Now a fresh install: > >>> >>> # gem install puppet >>> >>> Building native extensions. This could take a while... >>> >>> ERROR: Error installing puppet: >>> >>> ERROR: Failed to build gem native extension. >>> >>> >>> /opt/csw/bin/ruby18 extconf.rb >>> >>> extconf.rb:1:in `require': no such file to load -- mkmf (LoadError) >>> >>> from extconf.rb:1 >>> >>> >>> >>> Gem files will remain installed in >>> /opt/csw/lib/ruby/gems/1.8/gems/json-1.7.5 for inspection. >>> >>> Results logged to >>> /opt/csw/lib/ruby/gems/1.8/gems/json-1.7.5/ext/json/ext/generator/gem_make.out > > > The content of this last file is the same as the above error message: > >>> extconf.rb:1:in `require': no such file to load -- mkmf (LoadError) >>> >>> from extconf.rb:1 > > > Anyone know what the issue is? > > > Thanks. > > -- > 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/-/6bxXifJJK1AJ. > 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. -- Matthaus Owens Release Manager, Puppet Labs -- 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.