2013-03-18 68 views
2
[email protected]:~# gem install ruby-augeas 
Fetching: ruby-augeas-0.5.0.gem (100%) 
Building native extensions. This could take a while... 
ERROR: Error installing ruby-augeas: 
    ERROR: Failed to build gem native extension. 

     /usr/local/rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb 
*** 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. 

Provided configuration options: 
    --with-opt-dir 
    --with-opt-include 
    --without-opt-include=${opt-dir}/include 
    --with-opt-lib 
    --without-opt-lib=${opt-dir}/lib 
    --with-make-prog 
    --without-make-prog 
    --srcdir=. 
    --curdir 
    --ruby=/usr/local/rvm/rubies/ruby-1.9.3-p327/bin/ruby 
    --with-augeas-config 
    --without-augeas-config 
    --with-pkg-config 
    --without-pkg-config 
extconf.rb:27:in `<main>': augeas-devel not installed (RuntimeError) 


Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.3-p327/gems/ruby-augeas-0.5.0 for inspection. 
Results logged to /usr/local/rvm/gems/ruby-1.9.3-p327/gems/ruby-augeas-0.5.0/ext/augeas/gem_make.out 


No idea what lib is missing.... 


[email protected]:~# apt-get install libaugeas-dev 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
libaugeas-dev is already the newest version. 
0 upgraded, 0 newly installed, 0 to remove and 108 not upgraded. 

我也安装了libaugeas-dev的lib下,它仍然无法正常工作如何安装ruby-augeas宝石? (Ubuntu的10.04)

回答

1

您不需要使用gem在Ubuntu上安装ruby-augeas,它的包装,所以只需使用:

sudo apt-get install libaugeas-ruby 

如果你想了最新版本Augeas和红宝石augeas的,你可以使用my PPA

sudo apt-add-repository ppa:raphink/augeas 
sudo apt-get update 
sudo apt-get install libaugeas-ruby 
0

你可以尝试gem install ruby-augeas --pre

4

augeas-devel not installed (RuntimeError)

你应该安装:

sudo apt-get install libaugeas-dev

+0

它不工作我已经insalled libaugeas -dev以及 – 2013-03-19 01:04:52

+0

然而,这是个什么错误你得到的手段。你的包含路径可能有问题。 – 2013-03-23 10:35:39

+0

也就是说,在Ubuntu上,你不需要使用'gem'来安装'ruby-augeas',因为它是打包的,只需使用'sudo apt-get install libaugeas-ruby'。 – 2013-03-23 10:36:20