LoginSignup
4
5

More than 3 years have passed since last update.

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

Last updated at Posted at 2018-08-07

従来の 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
4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5