Difference between revisions of "Ruby"

From KeegansWiki
Jump to navigation Jump to search
(Created page with '=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 she…')
 
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
* bash < <(curl -s http://rvm.beginrescueend.com/install/rvm)
 
* 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
 
** Might have to manually download the rvm shell script, edit it to use home dir instead of /usr/local
* rvm install ruby-1.9.2 --with-zlib-dir=./.rvm/usr/ --proxy http://proxy.traderonline.com:80
+
* 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 [[https://rvm.beginrescueend.com/packages/zlib here]] for more info
 
** The zlib stuff is from an error, see [[https://rvm.beginrescueend.com/packages/zlib here]] for more info
 +
 
==Gems==
 
==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

Latest revision as of 13:20, 11 May 2011

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