Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 27552  / 3 Years ago, sat, august 28, 2021, 5:34:16

This is really stupid but I've been Googling for an hour now and can't find the answer.



I'm on Ubuntu 10.10, and I'm trying to update to the latest version of SASS so that I can use an @import rule inside an @media rule.



As suggested here; https://github.com/nex3/sass/issues/64, I tried:



$ sudo gem install sass --pre



And that seemed to work fine:



Successfully installed sass-3.2.0.alpha.35
1 gem installed


But when I try $ sass -v I get: Haml/Sass 3.0.9 (Classy Cassidy) which is the old version I had before updating.



What am I doing wrong?



$ which gem
/usr/bin/gem

$ which sass
/usr/bin/sass


Tried the answer:



$ sass -v
Haml/Sass 3.0.9 (Classy Cassidy)

$ sudo gem uninstall -Iax sass
Removing sass
Removing sass-convert
Removing scss
Successfully uninstalled sass-3.2.0.alpha.35

$ sass -v
Haml/Sass 3.0.9 (Classy Cassidy) (Was expecting an error here)

$ sudo gem install sass --pre
Successfully installed sass-3.2.0.alpha.35
1 gem installed
Installing ri documentation for sass-3.2.0.alpha.35...
Installing RDoc documentation for sass-3.2.0.alpha.35...

$ sass -v
Haml/Sass 3.0.9 (Classy Cassidy)


So it removes the one I successfully installed and leaves the one that actually gets used when I run the sass command. Thougts?


More From » ruby

 Answers
1

What we ended up doing was the following:



First, we installed rvm using the rails ready one-liner:



wget --no-check-certificate https://raw.github.com/joshfng/railsready/master/railsready.sh && bash railsready.sh



Selecting option 2 (RVM) when asked.



Then, we did source ~/.bashrc



Then we did a gem install sass --pre (no sudo).


[#41151] Monday, August 30, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ousear

Total Points: 395
Total Questions: 114
Total Answers: 89

Location: Jordan
Member since Thu, Aug 5, 2021
3 Years ago
;