Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: "compass:dist" Fatal error: spawn /usr/bin/compass ENOENT

Guys, I'm generating build my application with the grunt, it uses the compass. I set some variables:

export GEM_PATH =/usr/local/rvm/gems/ruby-2.1.2:/usr/local/rvm/gems/ruby-2.1.2@global
export PATH=$PATH:/usr/local/rvm/gems/ruby-2.1.2/bin
export PATH=$PATH:/usr/local/rvm/rubies/ruby-2.1.2/bin;
export PATH=$PATH:$GEM_PATH;
export PATH=$PATH:node_modules/grunt-cli/bin;

and perform the build grunt. The following Fatal error is :

4mRunning "compass:dist" (compass) task[24m 31mFatal error: spawn /usr/bin/compass ENOENT[39m

Could someone help me with this problem?

Thank

like image 255
Erick Macedo Avatar asked Nov 28 '22 20:11

Erick Macedo


1 Answers

I have had this issue after updating to EL Capital.

The following thread has yielded positive results. As I am unsure about your local environment, here's the link so that you can go through a few solutions: https://github.com/sass/sass/issues/1768

Here's what solved it for me:

brew install ruby
sudo gem install -n /usr/local/bin compass
like image 118
Jakub Wawszczyk Avatar answered Dec 05 '22 23:12

Jakub Wawszczyk