Terminal error message when trying to install Sass
It happens because you don't have Xcode Command Line developer tool on your OSX. For Sass, Compass and NPM, you need to have Xcode on your Mac OSX.
Install it by this command: xcode-select --install
. You can also install it through App Store. It usually takes time to download and Install Xcode.
After installation is finished you must use sudo xcodebuild -license
command to accept Xcode License agreement. Once you accept it, you can install your Sass with sudo gem install sass
command easily.
First
you should download the last version of Ruby Ruby Last Version because rubygems.org updated their SSL certificate and older versions don't have the updated certificate bundled for more information about this check this link
rubygem SSL certificate
second
After you install last version of Ruby , open cmd and write this command gem install sass
if you have an error like this
you must run this command chcp 65001
chcp is shortcut for Change the active console This command is rarely required as most GUI programs and PowerShell now support Unicode for more information check this link
After run this command,write command of install sass again gem install sass
congratulation sass installed succussfully
If you installed ruby from distro`s repo the problem might occur because you didn't install development libraries (ruby.h in particular)
sudo apt-get install ruby-dev
or
sudo dnf install ruby-devel