| created: 4/2/2008 |
updated: 5/22/2008 |
|
Ruby is certainly not the fastest performing production language to build web applications. I challenge you to find a language that is as intuitable. The elegant simplicity of Ruby enables development teams to create entire web applications in the time it takes to get one feature working correctly in Java.
aptitude install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 libreadline-ruby1.8 libruby1.8 libopenssl-ruby -y
ln -s /usr/bin/ruby1.8 /usr/local/bin/ruby
ln -s /usr/bin/ruby1.8 /usr/bin/ruby
ln -s /usr/bin/ri1.8 /usr/local/bin/ri
ln -s /usr/bin/rdoc1.8 /usr/local/bin/rdoc
ln -s /usr/bin/irb1.8 /usr/local/bin/irb
Having suffered first hand the constant battle to not break the oh so fragile Tomcat, I for one am rather content to develop in Ruby so that I may bring my creations to life more efficiently.
Sure, Java kicks the pants off of Ruby for pure server performance, but one day soon either Ruby will be compiled and tuned in a similar way or machines will be so fast that it really won't matter.
RubyGems
Ruby has it's own package management system called RubyGems. Because RubyGems updates itself, you should NOT install via Aptitude. Instead, download and compile yourself, like so:
Install RubyGems
cd /tmp/
wget http://rubyforge.org/frs/download.php/35283/rubygems-1.1.1.tgz
tar xzvf rubygems-1.1.1.tgz
cd rubygems-1.1.1
ruby setup.rb
ln -s /usr/bin/gem1.8 /usr/bin/gem
Install a gem
gem install gemname
Update gems
gem update
Remove unused gems
gem cleanup
Remove a gem
gem uninstall gemname
Update gem system
gem update --system