I know I have ruby and gem installed because I’ve installed a bunch of gems previously. Additionally when I do the following
~$ ruby --version
ruby 1.8.7 (2010-08-16 patchlevel 302 [i486-linux]
~$ gem --version
1.3.7
They, as you can see, return the version–yet when I try to do this–
~$ sass --watch happy.scss:happy.css
bash: sass: command not found
I’m a relative noob to everything, but far more to ruby and gems. For the sake of revealing more or less my level of understanding things generally I’ve learned enough of Debian to get a an environment where I could get Clojure running and get a web app working (taken me almost a year of spare time to do that–I knew virtually nothing of programming previoiusly). I’m trying to get sass working to ease my mental load in the webpage design side of things and I’m just hitting a brick wall on this.
Would this be a PATH issue? If so what needs to be on the path so that one gem works —
BTW here’s what happens when I install sass–
# gem install sass
Successfully installed sass-3.2.5
1 gem installed
Installing ri documentation for sass-3.2.5...
Installing RDoc documentation for sass-3.2.5...
Any help anyone can give will be much appreciated. I’ve been at this one all day and can’t figure it out for the life of me.
seems ok to me. I would check your path.
The proper PATH would depend on where your gems get installed. I use RVM so it will be different. You could try to throw an exception in your ruby code with rubygems loaded this should give you a starting point.
so from that i see
/Users/justin/.rvm/gems/ruby-1.9.3-p362@rails3.2/gems/railties-3.2.11/lib/rails/commands/console.rbso my bin path is at
/Users/justin/.rvm/gems/ruby-1.9.3-p362@rails3.2/binand if i
> ls /Users/justin/.rvm/gems/ruby-1.9.3-p362@rails3.2/binboom sass
so in my case I would want to add
/Users/justin/.rvm/gems/ruby-1.9.3-p362@rails3.2/binbut i use RVM so it does that for me.