zmoazeni / csscss

A CSS redundancy analyzer that analyzes redundancy.
http://zmoazeni.github.io/csscss/
MIT License
2.92k stars 151 forks source link

Put together blurb about setting up ruby v1.9+ #61

Closed zmoazeni closed 11 years ago

zmoazeni commented 11 years ago

Due to the audience there are a lot of non-ruby devs using csscss. A number of them have had issues getting setup. Some simple guide or links to popular guides would be a great idea.

Melindrea commented 11 years ago

For Ubuntu: http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/

Another at least decent place to look is http://guides.railsgirls.com/install/

thamas commented 11 years ago

It would be nice from you to lend a helping hand to those who – like me – do not want to dive in to ruby and rails details just want to try / use this – possibly :) – great tool.

OS X (still the latest, Mountain Lion) comes with an old 1.8.7 Ruby. There are tons of different suggestion on the web how to update it (use RVM, rbenv, Homebrew, Railsinstaller, XCode(!) etc). It is overwhelming! There are too much options, it is hard to decide which one to follow. And I do not want to mess my system with a lot of different tools which I do not use just to able to use a gem.

So it would be nice to get an "official" tutorial how to update to Ruby 1.9x (or 2.x?) on OS X in the simpleest and lightest way (changing just the the neccesary minimum) to be able to use csscss.

zmoazeni commented 11 years ago

@thamas Yeah I can appreciate that. We Rubyists like our variety, that is for sure. I don't know if I can give an "official stamp of approval" but I need to write a wiki page that describes a few different how tos and answers some obvious questions.

I would recommend rvm and homebrew. Homebrew installs stuff in /usr/local but does it in a way that can be easily removed. rvm installs everything into a folder in your home directory by default (you can also setup Homebrew to do the same. Neither need sudo and should work out of the box with minimal system impact. I use them both myself for that very reason.

XCode is a different beast, but you can install that from the App Store. That's endorsed by Apple so that better not hose anything.

thamas commented 11 years ago

Thanks for the answer! I'm watin' for the wiki pages but 'till that will try to manage with Homebrew and rbenv or rvm on my own…

thamas commented 11 years ago

Just FYI I installed Hombrew and than rbenv (using Homebrew and rbenv installation instructions). After that I was able to install Ruby 1.9.3 and csscss and it works! Thanks! :)

zmoazeni commented 11 years ago

I think this will become a non-issue with v2.0. I'm seriously considering rewriting csscss in scala, so the whole ruby setup stuff won't be an issue. It'll all depend on java installed.