Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updated to High Sierra and having trouble running compass

Tags:

sass

ruby

compass

I updated to High Sierra earlier this week and am having trouble running compass. When trying to run compass watch it gives me this error:

compass watch
-bash: /usr/local/bin/compass: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory

  • Tried to update ruby and failed. I have version 2.3. I don't have version 2.0 thats its looking for. so tried to change the path, failed again.
  • Also tried to update/reinstall compass.
  • I get an error saying I don't have permission to make changes.
like image 216
Ellie Fahimi Avatar asked Dec 23 '22 13:12

Ellie Fahimi


2 Answers

I had the same problem. Solved it by running:

$ sudo gem uninstall compass

$ gem update --system

$ sudo gem install compass

Hope it works for you!

UPDATE:

From ewartx: https://github.com/Compass/compass/issues/2129

\curl -sSL https://get.rvm.io | bash -s stable

rvm install 2.0.0

gem install compass

like image 170
Adi Avatar answered Jan 14 '23 13:01

Adi


If you don't want to revert, this worked for me (slightly modified from an answer here https://github.com/oklai/koala/issues/679)

  1. Open Terminal
  2. Install Homebrew: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  3. Do not close Terminal, open Mac Appstore and check Update, install all XCode Command Line Tools updates OR in my case, XCode Command Line Tools started install automaticly throught Terminal right after step 2.
  4. Back to Terminal
  5. Install Ruby: brew install rbenv ruby-build

At this point, install Compass (instead of SASS in original answer)

  1. Install Compass gem: sudo gem install -n /usr/local/bin compass
like image 21
Drew Thomas Avatar answered Jan 14 '23 12:01

Drew Thomas