首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >由于某些原因无法创建Makefile --试图安装Ruby

由于某些原因无法创建Makefile --试图安装Ruby
EN

Stack Overflow用户
提问于 2015-10-08 12:44:37
回答 1查看 4.7K关注 0票数 3

我在为我的Mac安装一个名为Lingust的Ruby时遇到了一些困难。我收到下面的错误信息,不知道如何解决这个问题。任何帮助都将不胜感激。

代码语言:javascript
复制
gem install github-linguist
Building native extensions.  This could take a while...
ERROR:  Error installing github-linguist:
ERROR: Failed to build gem native extension.

/Users/kanery/.rvm/rubies/ruby-2.0.0-p643/bin/ruby -r./siteconf20151008-9054-b4exbs.rb extconf.rb
checking for gmake... no
checking for make... yes
checking for cmake... no
ERROR: CMake is required to build Rugged.
*** 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=/Users/kanery/.rvm/rubies/ruby-2.0.0-p643/bin/ruby
  --use-system-libraries

extconf failed, exit code 1

Gem files will remain installed in /Users/kanery/.rvm/gems/ruby-2.0.0-p643/gems/rugged-0.24.0b0 for inspection.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-10-08 12:50:51

阅读坚固的安装说明,您可以看到CMake和pkg-config都是必需的。看看您的错误消息,您的系统上似乎没有安装CMake。

如果使用的是自制软件,则可以通过运行

代码语言:javascript
复制
brew install cmake

或者您可以从这些指示后面的源代码安装它。

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

https://stackoverflow.com/questions/33016209

复制
相关文章

相似问题

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