Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby and compass path with yeoman project

I installed ruby, yeoman, and when I run my project, I have this error:

Warning: Running "compass:dist" (compass) task Warning: You need to have Ruby and Compass installed this task to work. More info: https://github.com/gru Use --force to continue. Use --force to continue.

I have the path into the variable session target, but it doesn't work. Can anyone help me?

like image 515
Jesus.Ortega Avatar asked Jun 17 '13 11:06

Jesus.Ortega


3 Answers

I had to run this:

gem install compass

Found here: Angular with Yeoman 1.0 and Grunt

(I thought I had Compass installed by following the instructions here but it wasn't sufficient.)

like image 110
Taytay Avatar answered Nov 10 '22 03:11

Taytay


The problem comes from compass being called compass2.0

I solved the issue by symlinking compass to compass2.0

Here's the command: sudo ln -s /usr/bin/compass2.0 /usr/bin/compass

Hope this helps

like image 39
Claude Jr Belizaire Avatar answered Nov 10 '22 04:11

Claude Jr Belizaire


I was getting the same error. Turns out it was masking the real error:

{ '0': [Error: Error: not found: bundle],
  '1': 
   { stdout: '',
     stderr: 'Error: not found: bundle',
     code: 127,
     toString: [Function] },
  '2': 127 }

Fixed with:

sudo gem install bundle --no-user-install
like image 41
c24w Avatar answered Nov 10 '22 02:11

c24w