[英]Cannot gem install ruby-augeas on Ubuntu
I am trying to install augeas on Ubuntu. 我想在Ubuntu上安装augeas。
sudo gem install ruby-augeas
This gives me the error: 这给了我错误:
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)
I had 我有
sudo apt-get install ruby1.8-dev ruby1.9.1-dev augeas-tools libaugeas-dev
Btw, where is the mkmf.log
file? mkmf.log
一下, mkmf.log
文件在哪里?
How should I install augeas? 我应该如何安装augeas? I need to install it using gem as this will be used for Puppet's version of Ruby.
我需要使用gem安装它,因为它将用于Puppet的Ruby版本。
you need at least build-essential package to compile native extensions. 你至少需要build-essential包来编译原生扩展。 Also make sure you have all the ruby base libraries precompiled (or in the rvm).
还要确保预先编译了所有ruby库(或在rvm中)。
Try to install rvm itself, it will give you a list of required packages just after installation. 尝试安装rvm本身,它会在安装后为您提供所需包的列表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.