我正在尝试在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版本。
发布于 2012-10-09 07:30:52
您至少需要build-essential包才能编译本机扩展。
尝试安装rvm本身,它会在安装后立即给出所需软件包的列表。
https://stackoverflow.com/questions/12785447
复制相似问题