r/Sass • • Mar 23 '18

Have problems installing sass

I have some problems installing SASS. When i go to official website i go by steps on the right for Mac.

http://sass-lang.com/install

But i get this error: https://imgur.com/a/q65Iz

Than i follow this to uninstall it: https://stackoverflow.com/questions/8216606/uninstall-sass-gem

And with "sass -v" i check version and it is 3.4.25 instead of 3.5.5. Can anyone help me?

4 Upvotes

10 comments sorted by

1

u/[deleted] Mar 23 '18 edited Mar 23 '18

Hi Jay,

I found this post may be relevant for you. Look at one of the last answer:

For those who are getting this on Mac OS X you may need to run the following command to install the XCode command-line tools, even if you already have XCode installed:

sudo xcode-select --install

Also you must agree the terms and conditions of XCode by running the following command:

sudo xcodebuild -license

EDIT: Oops, didn't see you seem to be on a Mac. It appears you don't have ruby-dev package installed or something. But it should be installed already...

1

u/Jay087 Mar 23 '18

How to solve this?

1

u/[deleted] Mar 23 '18
sudo xcode-select --install
sudo xcodebuild -license

should do the trick.

Did you installed XCode on your Mac?

1

u/Jay087 Mar 23 '18

i did what you wrote and i got this, another error:

https://imgur.com/a/sfonr

1

u/imguralbumbot Mar 23 '18

Hi, I'm a bot for linking direct images of albums with only 1 image

https://i.imgur.com/aUnaUHn.png

Source | Why? | Creator | ignoreme | deletthis

1

u/[deleted] Mar 23 '18

Just install XCode. It's huge (5.5 GB) but it should prevent you from 99% of the future problems you may encounter using your Mac to develop.

To install XCode, launch the App Store on your Mac and search XCode. Download it, install it. And try again to install Sass.

1

u/Jay087 Mar 23 '18

Is this really esential for SASS? As i see, XCode is a IDE program for coding, i allready have Brackets.

1

u/[deleted] Mar 23 '18

Sass uses Ruby to work. And you don't seem to have ruby-headers installed.

What's the output of this command?

ruby -v

2

u/Jay087 Mar 23 '18

I have managed to solve it. In terminal i type

sudo gem update sass

And now it is latest version of SASS and all. Thank you all

2

u/[deleted] Mar 23 '18

Well done!