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
~$ sass --watch happy.scss:happy.css
bash: sass: command not found
# 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...
justin ⮀ ~ ⮀ gem install sass Fetching: sass-3.2.5.gem (100%) Successfully installed sass-3.2.5 1 gem installed justin ⮀ ~ ⮀ sass -v Sass 3.2.5 (Media Mark)
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.
> rails c Loading development environment (Rails 3.2.11) 1.9.3p362 :001 > throw test ArgumentError: wrong number of arguments (0 for 2..3) from (irb):1:in `test' from (irb):1 from /Usersemail@example.com/gems/railties-3.2.11/lib/rails/commands/console.rb:47:in `start' from /Usersfirstname.lastname@example.org/gems/railties-3.2.11/lib/rails/commands/console.rb:8:in `start' from /Usersemail@example.com/gems/railties-3.2.11/lib/rails/commands.rb:41:in `<top (required)>' from script/rails:5:in `require' from script/rails:5:in `<main>'
so from that i see
so my bin path is at
and if i
> ls /Usersfirstname.lastname@example.org/bin
b2json capify fog html2haml nokogiri rails ri sass-convert therubyracer tilt bundle coderay geocode httpclient oauth rake2thor ruby_noexec_wrapper scss thin tt cap erubis haml j2bson rackup rdoc sass sprockets thor
so in my case I would want to add
but i use RVM so it does that for me.