简体   繁体   English

错误:安装Sablon gem时无法构建gem本机扩展

[英]ERROR: Failed to build gem native extension when installing Sablon gem

I am trying to install and use the Sablon ruby gem. 我正在尝试安装和使用Sablon红宝石宝石。 I have installed xcode command line developer tools. 我已经安装了xcode命令行开发人员工具。 However, I continue to get the following error: 但是,我继续收到以下错误:

ERROR:  Error installing sablon:
    ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
Using mini_portile version 2.1.0
checking for iconv.h... yes
checking for gzdopen() in -lz... yes
checking for iconv... yes

Any ideas as to what might be going on here? 关于这里可能发生什么的任何想法?

try 尝试

gem install sablon -- --use-system-libraries=true

if it doesn't work may i ask how you installed xcode command line tools? 如果它不起作用,请问您如何安装xcode命令行工具?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM