首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Ubuntu上gem安装ruby-augeas

无法在Ubuntu上gem安装ruby-augeas
EN

Stack Overflow用户
提问于 2012-10-09 00:13:16
回答 1查看 1.2K关注 0票数 0

我正在尝试在Ubuntu上安装augeas。

代码语言:javascript
复制
    sudo gem install ruby-augeas

这给了我一个错误:

代码语言:javascript
复制
    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)

我有

代码语言:javascript
复制
sudo apt-get install ruby1.8-dev ruby1.9.1-dev augeas-tools libaugeas-dev

顺便说一句,mkmf.log文件在哪里?

我应该如何安装augeas?我需要使用gem安装它,因为这将用于Puppet的Ruby版本。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-10-09 07:30:52

您至少需要build-essential包才能编译本机扩展。

尝试安装rvm本身,它会在安装后立即给出所需软件包的列表。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12785447

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档