Error installing Sass on Mac / Error Installing sass on Mac

0

Running the command gem install sass shows me this Result of the console, if anyone knows the solution or an idea of why this is happening I would appreciate it.

 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.21/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20180220-47719-16iycjn.rb extconf.rb
checking for ffi.h... no
checking for ffi.h in /usr/local/include,/usr/include/ffi... yes
checking for ffi_call() in -lffi... yes
checking for ffi_prep_closure()... yes
checking for ffi_raw_call()... no
checking for shlwapi.h... no
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_call_without_gvl()... yes
checking for ffi_prep_cif_var()... no
creating extconf.h
creating Makefile

current directory: /Library/Ruby/Gems/2.3.0/gems/ffi-1.9.21/ext/ffi_c
make "DESTDIR=" clean
/Library/Ruby/Gems/2.3.0/gems/make-0.3.1/bin/make:4:in '<top (required)>': undefined local variable or method 'make' for main:Object (NameError)
    from /usr/local/bin/make:22:in 'load'
    from /usr/local/bin/make:22:in '<main>'

current directory: /Library/Ruby/Gems/2.3.0/gems/ffi-1.9.21/ext/ffi_c
make "DESTDIR="
/Library/Ruby/Gems/2.3.0/gems/make-0.3.1/bin/make:4:in '<top (required)>': undefined local variable or method 'make' for main:Object (NameError)
    from /usr/local/bin/make:22:in 'load'
    from /usr/local/bin/make:22:in '<main>'

make failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/ffi-1.9.21 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/ffi-1.9.21/gem_make.out
    
asked by Edwin Anaya 20.02.2018 в 15:56
source

1 answer

0

I think it's because you need to have Xcode installed on your mac.

1) xcode-select --install

2) sudo xcodebuild -license

3) to install sass do not forget to do it with sudo

sudo gem install sass

    
answered by 21.02.2018 в 21:55