[augeas-devel] Can't install the ruby-augeas gem

David Lutterkort lutter at redhat.com
Tue Aug 11 18:07:09 UTC 2009


On Tue, 2009-08-11 at 09:59 -0700, Robin Lee Powell wrote:
> On Tue, Aug 11, 2009 at 07:16:53PM +1000, Matthew Palmer wrote:
> > On Tue, Aug 11, 2009 at 01:15:04AM -0700, Robin Lee Powell wrote:
> > > Fresh machine, so I'm probably just missing some packages, but:
> > > 
> > > - ------------
> > > 
> > > debian:/usr/src# gem install ruby-augeas-0.2.0.gem
> > > Building native extensions.  This could take a while...
> > > ERROR:  Error installing ruby-augeas-0.2.0.gem:
> > >         ERROR: Failed to build gem native extension.
> > > 
> > > /usr/bin/ruby1.8 extconf.rb install ruby-augeas-0.2.0.gem
> > > *** extconf.rb failed ***
> > > Could not create Makefile due to some reason, probably lack of
> > > necessary libraries and/or headers.  Check the mkmf.log file for more
> > > details.  You may need configuration options.
> > 
> > As that error suggests, the contents of the mkmf.log file would be helpful. 
> 
> Sorry, it didn't look very helpful to me, so I forgot:
> 
> $ cat /var/lib/gems/1.8/gems/ruby-augeas-0.2.0/ext/augeas/mkmf.log
> package configuration for augeas is not found

It can't find augeas.pc; if you built and installed from source
(presumably into /usr/local), you'll need to set PKG_CONFIG_PATH and
LD_LIBRARY_PATH accordingly. Possibly other env vars, too. It's been a
while since I built against a non-default install of augeas.

> > > extconf.rb:27: augeas-devel not installed (RuntimeError)
> > 
> > This suggests that libaugeas-dev is the missing package.
> > ruby1.8-dev is also a good thing to have installed.
> 
> I installed augeas from source; shouldn't that include libaugeas-dev
> ?

Yes, the files should all be there. But not in places that mkmf looks
for.

> You mean force install it by ignoring dependencies?  Because it
> certainly doesn't install cleanly as is; it wants newer libc6, as
> usual:

If that's the only issue, try rebuilding the package. That might work
better than building the gem from scratch (and yes, gems are 18 kinds of
evil; unfortunately, they are also the way of ruby packaging)

David





More information about the augeas-devel mailing list