Help us understand the problem. What is going on with this article?

Mac High Sierra に compass をサクッとインストールする方法

従来の Ruby Sass を High Sierra にインストールする方法です。

Homebrew、Anyenv、npm、gulp とかは置いといて(LibSass node-sass を使わないで)、サクッと compass を動かしたい時に。。


インストール

環境:macOS High Sierra

1.Xcode Command Line Tools のインストール

$ xcode-select --install

2.Sass のインストール

$ sudo gem install -n /usr/local/bin sass

3.Compass のインストール

$ sudo gem install compass

おしまい。


以下、検索用のエラー文言

Command Line Tools をインストールする前に、
SASS をインストールしようとして、ERROR になる。

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

    current directory: /Library/Ruby/Gems/2.3.0/gems/ffi-1.9.23/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20180228-5487-11of4og.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/ffi-1.9.23 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/ffi-1.9.23/gem_make.out

アンインストール

$ sudo gem uninstall compass
$ sudo gem uninstall -n /usr/local/bin sass
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした