Skip to content

Instantly share code, notes, and snippets.

@johnantoni
Created April 28, 2009 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnantoni/103334 to your computer and use it in GitHub Desktop.
Save johnantoni/103334 to your computer and use it in GitHub Desktop.
##### ruby 1.8
wget ftp://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz
tar xzf stable*.tar.gz
cd ruby
nano version.h
...change => #define RUBY_PATCHLEVEL -1
...to => #define RUBY_PATCHLEVEL 1
./configure --prefix=/usr/local --with-openssl-dir=/usr --with-readline-dir=/usr --with-zlib-dir=/usr
sudo make && sudo make install && sudo make install-doc
then install gems
RUBYGEMS="rubygems-1.0.1"
wget http://rubyforge.org/frs/download.php/29548/$RUBYGEMS.tgz
tar xzf $RUBYGEMS.tgz
cd $RUBYGEMS
sudo /usr/local/bin/ruby setup.rb
cd ..
##### ruby1.9
svn co http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1
cd ruby_1_9_1
./configure --prefix=/Users/indiehead/ruby19
--with-openssl-dir=/usr --with-readline-dir=/usr --with-zlib-dir=/usr
sudo make && sudo make install && sudo make install-doc
to activate
PATH=/Users/indiehead/ruby19/bin:$PATH
ruby -v
=> ruby 1.9.1
##### Gem Essentials
sudo gem sources -a http://gems.github.com
sudo gem update --system
sudo gem install rails rake rack sinatra capistrano deprec mongrel thin cucumber webrat rspec rspec-rails builder rdiscount RedCloth
sudo gem install pony sqlite3-ruby fastercsv
sudo gem install mysql
sudo gem install ZenTest
sudo gem install prawn prawn-layout
....
sudo aptitude install libfreeimage3 libfreeimage-dev
sudo gem install image_science
sudo aptitude install mysql-server-5.0 libmysqlclient15-dev
sudo gem install mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment