Plz help - Can't install Sass on my MacBook Air

I am learning Sass and I came across an article on stack overflow on how to install sass because everytime I typed gem install sass or sudo install sass it gave errors. I updated the gem on the terminal and again it showed error so the users recommended that Xcode should be installed so that it solves all the problems.

So i just wanted to ask if I really need to install Xcode in order to use sass.

When I wrote gem install sass it showed '‘You don’t have write permissions for the /Library/Ruby/Gems/2.0.0 directory.’'and when I wrote sudo gem install sass it asked for my password and then again it showed errors…

I have version of gem

Done. Just write “code-select --install” in the terminal and it is much smaller than the actual Xcode program.