Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Just installed SASS, but can't get its version

I installed SASS from the terminal, just gem install sass. And I see it says "Successfully installed sass-3.2.9."

However, when I then do sass --version or sass --v I get this error:

-bash: sass: command not found

enter image description here

The only thing I can think of is, when I was doing the Git tutorials on Tuts+ I ran into a local vs. global issue or I had to edit a bash_profile file.

This is what is inside the bash_profile file inside my user directory:

export PATH="/usr/local/bin:$PATH"

Any thoughts or tips on why I can't get the version of SASS or Compass I just installed? (I can only get ruby --version.)

like image 846
Leon Gaban Avatar asked May 26 '13 15:05

Leon Gaban


1 Answers

Got the answer! https://superuser.com/questions/600262/error-when-installing-and-trying-to-get-version-of-sass-via-terminal?noredirect=1#comment739892_600262

$ brew --prefix ruby
/usr/local/opt/ruby
$ stat -f%Y /usr/local/opt/ruby
../Cellar/ruby/2.0.0-p0
$ export PATH=/usr/local/opt/ruby/bin:$PATH
$ which sass
/usr/local/opt/ruby/bin/sass
like image 61
Leon Gaban Avatar answered Nov 07 '22 04:11

Leon Gaban