Skip to content

Instantly share code, notes, and snippets.

@facelordgists
Last active November 13, 2019 22:47
Show Gist options
  • Save facelordgists/5551276 to your computer and use it in GitHub Desktop.
Save facelordgists/5551276 to your computer and use it in GitHub Desktop.
How to install SASS and Ruby

Easy Mac Install for Sass and Compass

gem update --system
gem update *
gem install sass
gem install compass

Update to Install Ruby 2.0 w/ readline support for Guard:liveReload

https://github.com/guard/guard/wiki/Add-proper-Readline-support-to-Ruby-on-Mac-OS-X

https://rvm.io/

rvm get stable
gem update --system
gem update *
rvm pkg install readline --verify-downloads 1
ruby_configure_flags=--with-readline-dir=/usr/local/opt/readline
rvm reinstall all --force

Install Ruby on Rails / Gems

On cPanel/WHM installs

/scripts/installruby

On CentOS https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-centos-6

  1. sudo yum install ruby
  2. sudo yum install gcc g++ make automake autoconf curl-devel openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel
  3. sudo yum install rubygems

Update to Ruby 2.0 & GIT on CentOS 6

  1. curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled # Or, --ruby=2.0.0
  2. rvm get head
  3. sudo yum install libyaml-devel
  4. rvm install 2.0.0 If this fails, search for the dependancy that it failed on, and remove it from the following file
  5. edit /usr/local/rvm/scripts/functions/requirements/centos

Install Guard:LiveReload

  1. gem install bundler

  2. Create Gemfile in /root, then add the contents of this gist to is: https://gist.github.com/facelordgists/5416559

  3. bundle install

  4. gem bundle

    cd /var/www/vhosts/staging.roadside2.com/httpdocs/roadside-2013/wp-content/themes/roadside-2013/

How to install growl

gem install ruby-growl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment