I am trying to run the Mithril yeoman generator unfortunately it falls over on grunt serve with the error
Warning: Running "compass:server" (compass) task Warning: Couldn't find the compass binary. Make sure it's installed ...
I can of course use --force to continue and it works fine but the css is not included which is a bit pointless, and my next option would be to modify the gruntfile to only use Sass without Compass.
Note I have tried of the following suggestions from this issue log for grunt-contrib-compass:
npm install grunt-contrib-compass
sudo gem install sass
sudo gem install compass
Thanks
The answer was found here
In order to install compass On Mac OS X (Yosemite)
Set Up Ruby Environment, ensure its up to date
ruby -v
sudo gem update --system
Set Up MAC Environment, install Xcode Command Line Tools
xcode-select --install
This was the key to getting Compass working on OS X!
Install Sass
sudo gem install sass
Install Compass
sudo gem install compass
Related
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.
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
If you don't want to revert, this worked for me (slightly modified from an answer here https://github.com/oklai/koala/issues/679)
Open Terminal
Install Homebrew: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
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.
Back to Terminal
Install Ruby: brew install rbenv ruby-build
At this point, install Compass (instead of SASS in original answer)
Install Compass gem: sudo gem install -n /usr/local/bin compass
I just ran into this as well. The solution was to make sure that the xCode command line tools were installed.
Run the following to install the needed development files.
xcode-select --install
Per #Adi's solution run this to uninstall compass and reinstall it.
sudo gem uninstall compass
gem update --system
sudo gem install compass
After that is complete you should be able to use compass and can re-run your command.
I have tried installing Sass three times on Mac OS Sierra(10.12) from the terminal typing the following code:
sudo gem install sass
Then it asks for my password, I enter it and nothing happens (I even waited half an hour) it does not even gives any error or any other message, then when I try to close the terminal window a message appears saying that the processing will terminate if I close the window.
I already checked on if ruby is installed on my Mac and this is the version I have:
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
What should I do?
NOTE: I'm a newbie and don't know about programming at all and this is the first time I use the terminal.
I had the exact same issue but found a solution for a similar thread on Compass.
You might need to install the developer tools first by entering the following on the command line:
xcode-select --install
Then try
sudo gem install sass
It worked for me and I am now running Sass 3.5.1 (Bleeding Edge)
Buddy,
I just now faced the same problem exactly same.
$ brew install ruby
make sure homebrew is installed on your PC then I did
$ sudo gem install sass
The installation took place
$ sass -v
Sass 3.5.1 (Bleeding Edge)
Hope it helps you too..
I used to have the same problem installing the Sass.
After installing Xcode with
xcode-select --install
I agree the license with
sudo xcodebuild -license
and finally run the app Xcode and finished installing.
After that I write sudo gem install sass and it works.
I am in the process of setting up a new Mac for work. I have installed Grunt & Grunt CLI globally. Then I did a npm install inside a project folder to install all dependencies.
No problems so far, but as soon as I try to run the sass:dist task, I get this warning:
Warning: You need to have Ruby and Sass installed and in your PATH for
this task to work. More info:
https://github.com/gruntjs/grunt-contrib-sass Use --force
to continue.
What I understand is that I need to have Ruby and Sass installed on a more global level for this task to run. As I am still pretty new to working with the terminal, I did a quick search to find out what PATH is - seems like its some system path (that can be changed) where important data is stored.
Does this mean I can simply do a sudo grunt install contrib-sass -g to resolve the issue? And what about Ruby – I always thought its already installed on OS X?
Ok I got it. I just had to install Sass using gem install sass and now everything is fine...couldn't be easier.
If you're on OSX El Capitan or Yosemite on Mac there seem to be an issue installing the gem.
Try
sudo gem install -n /usr/local/bin sass
Solution was from github.
You need to install Ruby and Sass as:
For Ruby use command
sudo apt-get install ruby-full
And for Sass use command
sudo gem install sass
grunt-sass documentation is not very clear. To avoid the need of Ruby, you can try this:
npm uninstall --save grunt-contrib-sass
npm install --save node-sass grunt-sass
Try this, It's work for me.
reference
You need to install Ruby and Sass as:
For Ruby use command
sudo apt-get install ruby-full
And for Sass use command
sudo gem install sass
Use grunt --force if you are using grunt.
If you want to run an application using grunt and a warning is occur like this. For ignoring this warning you can use --force.
Also simply brew install saas/sass/sass on Mac High Sierra (10.13.x)
I used Homebrew to install Ruby and then Ruby to install SASS. Probably only the best way to do it if you already use Homebrew, or want to start using it regularly...
brew install ruby
gem install sass
I'm running Linux Mint 15. I don't know if this a Path problem but I install compass with gem install compass and it says 1 gem installed. Then when I type compass -v I get the following:
The program 'compass' can be found in the following packages:
* libcompass-ruby1.8
* ruby-compass
Try: sudo apt-get install <selected package>
EDIT
had to put source ~/.bash_profile inside my .bashrc file. But now the error is
/home/mike/.rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/definition.rb:16:in `build': /Gemfile not found (Bundler::GemfileNotFound)
Well this is strange. I ended up wiping everything and re-installing RVM, Ruby, RubyGems, and Compass and now it all works fine. Don't really know what happened.
I'm trying to install Compass and Susy on my Ubuntu 12.04.
What I have tried are the following steps on the console:
sudo apt-get install rubygems1.8
sudo gem install rubygems-update # Instead of sudo gem update --system
sudo update_rubygems
sudo gem install compass # Installing Compass & Sass
sudo gem install susy
So the gems are installed and will be listed when I do the following command:
gem list
But now, when I try to create a new compass project with
compass create project
I get the following error:
/usr/local/bin/compass: /usr/bin/ruby1.9.1: bad interpreter: No such file or directory
My current ruby version is 1.8.7. So I installed ruby 1.9.1 and get it working.
The console still says the current ruby version is 1.8.7
My question: Do I have to run with both ruby versions to get that working? Is there another way under ubuntu? It's working, I know, but it's a bit confusing.
Using Ubuntu's package manager for multiple ruby versions is a bit of a lost cause.
Most people use rvm, which allows you to install and switch between multiple rubies very easily.
Other popular options are rbenv and chruby. It's just a question of personal preference, but I'd say that rvm has the slight edge for beginners.
Also, I wouldn't recommend installing ruby 1.9.1 - it's best to use 1.9.3 as there are some compatibility issues with other 1.9.x versions.
You can then install compass and sass via ruby gems (rather than aptitude):
$ gem install compass
$ gem install sass
This simple command works on ubuntu 14.10
sudo apt-get install ruby-compass
RVM is awesome and really easy to install. I managed to install rvm, compass, and sass with these commands in my terminal:
Firstly:
curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled --ruby=1.9.3
This will instal rvm, it will put a command in ~/.bash_profile to load rvm automatically, except this isn't what Ubuntu uses so put this line into your ~/.bashrc file:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
Then simply run:
gem install compass
gem install susy #(or sass)
Install build-essentials and ruby-dev packages to install compass without errors.
sudo apt-get install build-essential
sudo apt-get install ruby
sudo apt-get install ruby-dev
sudo gem install compass
Masterchief's answer is close, but didn't work for me. This web page provided a clear and reliably working way to install rvm on my ubuntu server instance: http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/