Ruby

From KeegansWiki
Revision as of 13:20, 11 May 2011 by Keegan (talk | contribs) (→‎Ruby itself)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Installing Ruby with git

Ruby itself

  • rvm package install zlib
  • bash < <(curl -s http://rvm.beginrescueend.com/install/rvm)
    • Might have to manually download the rvm shell script, edit it to use home dir instead of /usr/local
  • rvm install 1.9.2 --proxy http://proxy.traderonline.com:80 -C --with-readline-dir=/home/ruby/.rvm/usr,--with-openssl-dir=/home/ruby/.rvm/usr,--with-zlib-dir=/home/ruby/.rvm/usr
    • The zlib stuff is from an error, see [here] for more info

Gems

  • export GEM_HOME=/home/builder/.rvm/gems/ruby-1.9.2-p180
  • gem install bundler

cd to the gem source directory with a Gemfile in it

  • bundle install
  • rake install