When I run compass watch on tty7 using the bash terminal in my Ubuntu 14.04 (Ctrl+Alt+T) it's all jolly good. However, whenever I try tty1 to tty6, it comes back with the error below:
/usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find compass (>= 0) amongst [bundler-1.6.2, bundler-unload-1.0.2, executable-hooks-1.3.2, gem-wrappers-1.2.5, rubygems-bundler-1.4.4, rvm-1.11.3.9] (Gem::LoadError)
from /usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs'
from /usr/lib/ruby/1.9.1/rubygems.rb:1231:in `gem'
from /usr/local/bin/compass:22:in `<main>`
If I simply run sass, a similar error is observed, but with sass in place of compass. Thus I think this problem is related to Ruby gems in general.
When I run whereis sass, the output is sass: /usr/local/bin/sass. I have checked in tty1 to tty6 that /usr/local/bin is in the $PATH variable. I have tried re-installing or just plain installing it again but each time the same error is thrown.
The environment is different on tty1 compared to the terminal, you can see the differences here. As you can see, the $PATH variables are the same (albeit in different order), and that usr/local/bin, where the gems are installed, are present in both.
Only when I use rvmsudo gem install did it work. Why does Sass or Compass start in tty7 but not tty1 to tty6? (without me having to install it again)