Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sass is not working & Can't install ruby-sass on macOS Catalina

Ruby sass is not working after upgrading to macOS Catalina beta.

When I run sudo gem install sass, I'm getting an error:

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

    current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.11.1/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /Library/Ruby/Site/2.6.0 -r ./siteconf20191007-37566-177grvx.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/ffi-1.11.1 for inspection.
Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/ffi-1.11.1/gem_make.out```
like image 671
Delowar Hosain Avatar asked Oct 07 '19 02:10

Delowar Hosain


Video Answer


1 Answers

Problem solved, here's the solution

Open terminal & run these code

  • Step 1: brew update
  • Step 2: xcode-select --install
  • Step 3: sudo gem install -n /usr/local/bin sass

Now check your sass version: sass -v

like image 80
Delowar Hosain Avatar answered Oct 19 '22 22:10

Delowar Hosain