Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS 

debian etch - install ruby 1.8.6 + rubygems from source + add tools

// debian etch - install ruby 1.8.6 + rubygems from source

   1  
   2  //build essentials
   3  sudo aptitude install ssh gcc sudo build-essential make git-core subversion -y
   4  sudo aptitude install bash man-db cron wget lynx bind9 -y
   5  sudo aptitude install mysql-server mysql-client libmysqlclient15-dev libmysql-ruby sqlite3 imagemagick -y
   6  
   7  //now ruby 1.8.6 from source
   8  cd /usr/src
   9  wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p114.tar.gz
  10  tar xfz ruby-1.8.6-p114.tar.gz
  11  cd ruby-1.8.6-p114
  12  ./configure --prefix=/usr/local
  13  sudo make 
  14  sudo make install
  15  
  16  //now gems from source
  17  cd /usr/src
  18  wget http://rubyforge.org/frs/download.php/38646/rubygems-1.2.0.tgz
  19  tar xfz rubygems-1.2.0.tgz
  20  cd rubygems-1.2.0
  21  sudo ruby setup.rb
  22  
  23  //update with
  24  sudo gem install rubygems-update
  25  sudo update_rubygems
  26  

Install Ruby, Gems and Rails with darwinports

   1  
   2  sudo port install ruby
   3  sudo port install rb-rubygems
   4  sudo gem install rails --include-dependencies
   5  sudo ln /opt/local/bin/ruby /usr/local/bin/ruby


Originally from http://labs.broqn.com/blog/2005/03/ruby-on-rails-with-darwinports/ (added --include-dependencies)
« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS