"bourbon install" doesn't do anything - terminal

I have run
Matthews-iMac:~ mattbtay2$ sudo gem install bourbon
Password:
Fetching: bourbon-4.0.2.gem (100%)
Successfully installed bourbon-4.0.2
Parsing documentation for bourbon-4.0.2
Installing ri documentation for bourbon-4.0.2
1 gem installed
But when in try to add bourbon into the project:
Matthews-iMac:bourb mattbtay2$ bourbon install
Matthews-iMac:bourb mattbtay2$
not sure why nothing is happening. I can install Neat, and Bitters just fine. When I run
bourbon -h
I get
Matthews-iMac:bourb mattbtay2$ bourbon -h
Usage: bourbon [options] [command]
Commands:
new <path>
run [options] [path]
Options:
-h, --help output usage information
-V, --version output the version number
I don't even see an install command. Did I miss something?

Version 4.0.2 should give you this response:
[~/Code/bourbon-test] gem install bourbon
Successfully installed bourbon-4.0.2
1 gem installed
[~/Code/bourbon-test] bourbon -h
Commands:
bourbon help [COMMAND] # Describe available commands or one specific command
bourbon install # Install Bourbon into your project
bourbon update # Update Bourbon
bourbon version # Show Bourbon version
It doesn't look like bourbon has used "new" and "run" in a long time. Maybe it isn't updating the executables for some reason. Try gem uninstall bourbon and gem install bourbon again.

Related

How to handle different versions (Bourbon) of ruby gems on my Mac

I installed the bourbon gem on my OSX machine some weeks ago:
gem install bourbon
Now i have problems with bourbon in a web project (gulp says "mixins not found") so I wanted to uninstall and re-install the gem. So I typed:
$ gem uninstall bourbon
Surprisingly I get the following message in the terminal:
Select gem to uninstall:
1. bourbon-4.2.6
2. bourbon-5.0.0.beta.3
3. bourbon-5.0.0.beta.4
4. All versions
Hm? It seems that there are different versions of the gem installed and doing
bourbon install
in my project folder installs the latest beta (which lacks some SASS mixins I think). I thought when I install or update a gem that the older gems are deleted or overwritten. So how to handle this the best?
run this:
$ gem uninstall bourbon
Select 4 to uninstall all the versions. Then install the gem again using the command.
gem install bourbon -v 4.2.6
Hopefully it will help.

How do I update/fix the SASS and Compass $PATH to work with grunt-contrib-compass

I am trying to run grunt-contrib-compass, but running into this error:
Warning: Couldn't find the `compass` binary. Make sure it's installed and in your $PATH Use --force to continue.
I've run:
sudo gem install compass
sudo gem install sass
sudo gem update --system
When I do gem list, I get:
compass (1.0.1)
rails (4.1.6)
sass (3.4.5, 3.3.4)
ruby:
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin12.0]
Any suggestions or solutions on how to get grunt-contrib-compass working?
You have to install, first
sudo apt-get install ruby gem ruby-dev
second
sudo gem install compass
Did you find your solution? I had the same error on Ubuntu 14.04.
Compass is a gem but you also need ruby-compass. If you do compass -v, it might say you don't have ruby-compass and need to install it. This was my case so I did sudo apt-get install ruby-compass which solved my problem.

CodeKit: Sass/Compass Conflicts

I get this error when I try to compile using Compass on Codekit:
Compass failed to run because your Mac has an older version of Sass
and/or Compass installed that conflicts with the newer versions in
CodeKit. You must remove all versions of Sass below 3.3.rc6 and all
versions of Compass below 1.0.alpha18. Do this at the command line by
running 'sudo gem uninstall sass' and 'sudo gem uninstall compass'.
I ran sudo gem uninstall sass and sudo gem uninstall compass, however when I try to compile through CodeKit again I get the same error.
try running gem query --local this will list local gems, once you have a list, just go through and remove all sass+compass related gems with sudo gem uninstall ___, pretty sure that compass also has compass-core, but there are probably more
How have you initially installed your gems? Is it possible that you've also installed gems with just gem install? Cuz sudo gem installs gems as root for all users while gem install only installs gems for your active user. So maybe gems left installed which aren't uninstalled with sudo gem uninstall?
On the other hand why uninstall compass at all. I am running Codekit 2.1 with its internal Sass 3.3.10 along with the external gem Compass 0.12.4. That actually works quite well. You have go to Codekit Preferences -> Other Tools -> Compassand choose the radio button "Use the Compass executable at this path" and select your Compass gem then.
If you are using RVM for your ruby management then switch to your system ruby version
rvm use system
and install sass and compass for this version
sudo gem install sass
sudo gem install compass
This worked for me!

Susy not working with Compass and Sass

I'm getting a Gem:ConflictError when trying to run Susy. I noticed that Compass depends on sass 3.2.19 But the latest Susy depends on Sass (< 3.5, >= 3.3.0). I'm a nubie at this so what can I do to fix this?
Thanks!
You need to update your Compass to 1.0.0 or later.
gem install compass --pre
Even easier, use Bundler. Provided your Gemfile includes sass 3.3, Bundler will add the other dependencies.
So I was able to answer my own question by combining some of the answers I found here.
First uninstall compass an then do the follow:
Install rvm (stable with ruby add --insecure flag for SSL related issues) $\curl -sSL --insecure https://get.rvm.io | bash -s stable --ruby
Restart Terminal / Resource your profile
Run rvm requirements --with-gcc=clang You won't have to update Ruby because you downloaded the last stable version
And last step to run gem install compass --pre
I hope this helps anyone else who runs into the same problem!

Installing new gems

Hi I am looking to install the win32-service gem in Ruby for Windows, I have tried using the "gem install" command but it doesn't seem to know where to find my gem ;(
I downloaded the gem itself which came with a load of folders but no install instructions.
Is there anyway I can manually install the gem or point IRB in the right direction?
run this command to install gem file manually.
gem install [your gem file]

Resources