rbenvで別バージョンのRubyを使うように変更したらgruntでcompassを使っていたプロジェクトで下記のようなエラーが出てコンパイル出来なくなってしまいました。
» grunt compass:dist Running "compass:dist" (compass) task rbenv: compass: command not found The `compass' command exists in these Ruby versions: 1.9.3-p0 Warning: You need to have Ruby and Compass installed and in your system PATH for this task to work. More info: https://github.com/gruntjs/grunt-contrib-compass Use --force to continue. Aborted due to warnings.
rbenvで使っているrubyのバージョンを見る為に下記コマンドを実行します。
$ benv versions system 1.9.3-p0 * 2.1.2 (set by ...../.rbenv/version)
要するにcompass使うにはrubyのバージョンが違うよ。って感じっぽい。
compassが動作するようにするにはRubyのバージョンに合ったcompassを入れなおせば良いっぽい。
$ rbenv local 2.1.2 # 最初に使うrubyのバージョンを選択 $ gem install compass # gemでcompassをインスト―ル $ rbenv rehash
これで、gruntでcompassを使ってcssがコンパイルできるようになりました。
[参考にしました]