【问题标题】:Cant install SASS 3.3 Alpha无法安装 SASS 3.3 Alpha
【发布时间】:2013-08-03 21:28:42
【问题描述】:

每次我尝试安装最新的 SASS 预版本

gem install sass --pre

在终端返回这个输出

Building native extensions.  This could take a while...
ERROR:  Error installing sass:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/ffi-1.9.0 for inspection.

有什么想法吗?

【问题讨论】:

    标签: gem installation sass


    【解决方案1】:

    手动安装预发布版本。使用gem install sass --version=3.3.0.alpha.184。如果您使用的是 Mac,则可能需要使用 sudo

    【讨论】:

      【解决方案2】:

      我遇到了同样的错误,这对我来说就像一个魅力:)

      Failed to build gem native extension — Rails install

      【讨论】:

        猜你喜欢
        • 2018-04-02
        • 2021-10-15
        • 2018-03-29
        • 2015-10-12
        • 2017-09-20
        • 2019-09-08
        相关资源
        最近更新 更多