Hello guys, I am facing a problem with puppet client installed via gem due Ruby EE. The problem is the following:> puppetd -vtinfo: Caching catalog for #FQDN err: Could not run Puppet configuration client: Could not find a default provider for augeas I have tried to install ruby-augeas(gem install ruby-augeas) but it returns an error while compiling(make can not compile it). My ruby version is: ruby 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2010.01 And my puppet client version is: 2.6.2 Do you guys have any idea on how to solve this problem ? Thank you -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
On 18/06/13 23:07, Charles Mean wrote:> Hello guys, I am facing a problem with puppet client installed via gem > due Ruby EE. > The problem is the following: > >> puppetd -vt > info: Caching catalog for #FQDN > err: Could not run Puppet configuration client: Could not find a default > provider for augeas > > I have tried to install ruby-augeas(gem install ruby-augeas) but it > returns an error while compiling(make can not compile it). > > My ruby version is: ruby 1.8.7 (2009-12-24 patchlevel 248) > [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2010.01 > And my puppet client version is: 2.6.2 > > Do you guys have any idea on how to solve this problem ?You said you had an error while compiling, what was the error? At a guess you''ll need to ensure you have at least gcc and augeas-devel available. -- Dominic Cleal Red Hat Engineering -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Hello Dominic, thank you for your reply. The make error is the following: *> gem install ruby-augeas* Building native extensions. This could take a while... ERROR: Error installing ruby-augeas: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb creating Makefile make gcc -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -fPIC -g -O2 -I/usr/include/libxml2 -c _augeas.c _augeas.c: In function ''Init__augeas'': _augeas.c:504: error: ''AUG_ENABLE_SPAN'' undeclared (first use in this function) _augeas.c:504: error: (Each undeclared identifier is reported only once _augeas.c:504: error: for each function it appears in.) _augeas.c:519: error: ''AUG_ENOSPAN'' undeclared (first use in this function) _augeas.c:520: error: ''AUG_ECMDRUN'' undeclared (first use in this function) make: *** [_augeas.o] Error 1 Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/ruby-augeas-0.5.0 for inspection. Results logged to /usr/local/lib/ruby/gems/1.8/gems/ruby-augeas-0.5.0/ext/augeas/gem_make.out *> cat /usr/local/lib/ruby/gems/1.8/gems/ruby-augeas-0.5.0/ext/augeas/gem_make.out* /usr/local/bin/ruby extconf.rb creating Makefile make gcc -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -fPIC -g -O2 -I/usr/include/libxml2 -c _augeas.c _augeas.c: In function ''Init__augeas'': _augeas.c:504: error: ''AUG_ENABLE_SPAN'' undeclared (first use in this function) _augeas.c:504: error: (Each undeclared identifier is reported only once _augeas.c:504: error: for each function it appears in.) _augeas.c:519: error: ''AUG_ENOSPAN'' undeclared (first use in this function) _augeas.c:520: error: ''AUG_ECMDRUN'' undeclared (first use in this function) make: *** [_augeas.o] Error 1 And about your suggest, I have these versions of gcc and augeas-dev: *> gcc --version* gcc (Debian 4.4.5-8) 4.4.5 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *> aptitude show libaugeas-dev* Package: libaugeas-dev State: installed Automatically installed: no Version: 0.7.2-1 Priority: optional Section: libdevel Maintainer: Nicolas Valcárcel Scerpella (Canonical) < nicolas.valcarcel@canonical.com> Uncompressed Size: 90.1 k Depends: libaugeas0 (= 0.7.2-1) Description: Development files for writing applications based on libaugeas0 Augeas is a configuration editing tool. It parses configuration files in their native formats and transforms them into a tree. Configuration changes are made by manipulating this tree and saving it back into native config files. This package includes the development files to write programs using the Augeas API. Homepage: http://augeas.net/ Do you have a clue how to solve it ? On Wed, Jun 19, 2013 at 6:28 AM, Dominic Cleal <dcleal@redhat.com> wrote:> On 18/06/13 23:07, Charles Mean wrote: > > Hello guys, I am facing a problem with puppet client installed via gem > > due Ruby EE. > > The problem is the following: > > > >> puppetd -vt > > info: Caching catalog for #FQDN > > err: Could not run Puppet configuration client: Could not find a default > > provider for augeas > > > > I have tried to install ruby-augeas(gem install ruby-augeas) but it > > returns an error while compiling(make can not compile it). > > > > My ruby version is: ruby 1.8.7 (2009-12-24 patchlevel 248) > > [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2010.01 > > And my puppet client version is: 2.6.2 > > > > Do you guys have any idea on how to solve this problem ? > > You said you had an error while compiling, what was the error? > > At a guess you''ll need to ensure you have at least gcc and augeas-devel > available. > > -- > Dominic Cleal > Red Hat Engineering > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
On 19/06/13 17:46, Charles Mean wrote:> Hello Dominic, thank you for your reply. >[snip]> make > gcc -I. -I/usr/local/lib/ruby/1.8/x86_64-linux > -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -fPIC -g -O2 > -I/usr/include/libxml2 -c _augeas.c > _augeas.c: In function ''Init__augeas'': > _augeas.c:504: error: ''AUG_ENABLE_SPAN'' undeclared (first use in this > function) > _augeas.c:504: error: (Each undeclared identifier is reported only once > _augeas.c:504: error: for each function it appears in.) > _augeas.c:519: error: ''AUG_ENOSPAN'' undeclared (first use in this function) > _augeas.c:520: error: ''AUG_ECMDRUN'' undeclared (first use in this function) > make: *** [_augeas.o] Error 1 > [snip] > > *> aptitude show libaugeas-dev* > Package: libaugeas-dev > State: installed > Automatically installed: no > Version: 0.7.2-1 > [snip] > > Do you have a clue how to solve it ?Looks like a version problem, the latest version of ruby-augeas requires augeas 0.8.0 or higher, but your OS version is too old. You probably want to use ruby-augeas 0.3.0 to match Debian 6''s version, but that''s not published on rubygems.org. Try downloading this and running gem install against it: http://download.augeas.net/ruby/ruby-augeas-0.3.0.gem Else you could try Raphael''s Ubuntu packages, maybe the 12.04 ones are a close match for Debian: https://launchpad.net/~raphink/+archive/augeas/ -- Dominic Cleal Red Hat Engineering -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Great Dominic, this version solved the problem. I have just installed ruby-augeas-0.3.0.gem and puppet is working now =) Thank you for your help. On Wed, Jun 19, 2013 at 2:19 PM, Dominic Cleal <dcleal@redhat.com> wrote:> On 19/06/13 17:46, Charles Mean wrote: > > Hello Dominic, thank you for your reply. > > > [snip] > > make > > gcc -I. -I/usr/local/lib/ruby/1.8/x86_64-linux > > -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -fPIC -g -O2 > > -I/usr/include/libxml2 -c _augeas.c > > _augeas.c: In function ''Init__augeas'': > > _augeas.c:504: error: ''AUG_ENABLE_SPAN'' undeclared (first use in this > > function) > > _augeas.c:504: error: (Each undeclared identifier is reported only once > > _augeas.c:504: error: for each function it appears in.) > > _augeas.c:519: error: ''AUG_ENOSPAN'' undeclared (first use in this > function) > > _augeas.c:520: error: ''AUG_ECMDRUN'' undeclared (first use in this > function) > > make: *** [_augeas.o] Error 1 > > [snip] > > > > *> aptitude show libaugeas-dev* > > Package: libaugeas-dev > > State: installed > > Automatically installed: no > > Version: 0.7.2-1 > > [snip] > > > > Do you have a clue how to solve it ? > > Looks like a version problem, the latest version of ruby-augeas requires > augeas 0.8.0 or higher, but your OS version is too old. > > You probably want to use ruby-augeas 0.3.0 to match Debian 6''s version, > but that''s not published on rubygems.org. Try downloading this and > running gem install against it: > http://download.augeas.net/ruby/ruby-augeas-0.3.0.gem > > Else you could try Raphael''s Ubuntu packages, maybe the 12.04 ones are a > close match for Debian: > https://launchpad.net/~raphink/+archive/augeas/ > > -- > Dominic Cleal > Red Hat Engineering > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.