我正在尝试在Ubuntu上安装augeas。
sudo 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/bin/ruby1.9.1 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
--without-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/bin/ruby1.9.1
--with-augeas-config
--without-augeas-config
--with-pkg-config
--without-pkg-config
extconf.rb:27:in `<main>': augeas-devel not installed (RuntimeError)
我有
sudo apt-get install ruby1.8-dev ruby1.9.1-dev augeas-tools libaugeas-dev
顺便问一下,mkmf.log
文件在哪里?
我应该如何安装augeas?我需要使用gem安装它,因为它将用于Puppet的Ruby版本。
答案 0 :(得分:2)
至少需要build-essential包来编译本机扩展。还要确保预先编译了所有ruby库(或在rvm中)。
尝试安装rvm本身,它会在安装后为您提供所需包的列表。