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
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.
Do you have a clue how to solve it ?