Howto: Install Ruby and Rails on Debian or Ubuntu

Ruby on Rails – what the f…
Ruby on Rails, often shortened to Rails or RoR, is an open source web application framework for the Ruby programming language. It is intended to be used with an Agile development methodology that is used by web developers for rapid development.

Ruby on Rails is often installed using RubyGems, a package manager, which is included with Ruby. Many Linux distributions also support installation of Rails and its dependencies through their native package management system, anyway no matter the installation technique, installing Ruby on Rails on a Debian or Ubuntu distribution is plain sailing and very easy.

Installing Ruby on Rails using RubyGems

Install Ruby and RubyGems

sudo aptitude install ruby rubygems

As I wrote this post, there was a nasty bug in the Rails dependency notation for Rack, which means you’ll need to install version 1.0.1 of Rack instead of the default version, which is as of now version 1.1.0.

Install Rails

sudo gem install rack --version 1.0.1
sudo gem install rails

That’s all. You are done.

Installing Ruby on Rails using apt-get or aptitude

Install Ruby on Rails

sudo aptitude install rails

That’s all. You are done.

Related posts:

  1. Ubuntu Howto: Install Ruby and Ruby on Rails
  2. Howto Install Ruby and Ruby on Rails on Debian Etch 4.0
  3. Howto install Ruby on Rails on Fedora Core 5 (fc5)
  4. Ubuntu Howto: Install Oracle
  5. Howto Install Oracle on Debian
  6. Ubuntu and Ruby
  7. Ubuntu Howto: Install Sun Java
  8. Great Ruby on Rails Sites and Blogs
  9. Howto Install Sun Java on Debian Etch
  10. Ruby on Rails

Comments

Howto Create a libstdc++ Compat on Debian (e.g. libstdc++-libc6.2-2.so.3)

Today I tried to update a Smart Array 6400 controller with a new firmware version, but it was not easy, since HP releases proprietary crap software, which is linked against an ancient version of the libstdc++ library, namely libstdc++-libc6.2-2.so.3.

This was, what I got using ldd

hopper:~# ldd cpqsetup
	linux-gate.so.1 =>  (0xf7f4d000)
	libpthread.so.0 => /lib32/libpthread.so.0 (0xf7f2c000)
	libstdc++-libc6.2-2.so.3 => not found
	libm.so.6 => /lib32/libm.so.6 (0xf7ec6000)
	libc.so.6 => /lib32/libc.so.6 (0xf7d73000)
	/lib/ld-linux.so.2 (0xf7f4e000)
	libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7d66000)

This solution is a follows:

Not pretty, but it works quite well with the HP Firmware CD Supplemental Update / Online ROM Flash Component for Linux – Smart Array 6400

wget http://mediakey.dk/~cc/files/compat-libstdc++-296-2.96-138.i386.rpm
aptitude install rpm
rpm2cpio compat-libstdc++-296-2.96-138.i386.rpm | cpio -idmv
export LD_LIBRARY_PATH=/root/usr/lib/:$LD_LIBRARY_PATH
ldconfig

Then ldd should show this:

hopper:~# ldd cpqsetup
	linux-gate.so.1 =>  (0xf7f4d000)
	libpthread.so.0 => /lib32/libpthread.so.0 (0xf7f2c000)
	libstdc++-libc6.2-2.so.3 => /root/usr/lib/libstdc++-libc6.2-2.so.3 (0xf7eea000)
	libm.so.6 => /lib32/libm.so.6 (0xf7ec6000)
	libc.so.6 => /lib32/libc.so.6 (0xf7d73000)
	/lib/ld-linux.so.2 (0xf7f4e000)
	libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7d66000)

And then I was able to use the HP firmware update utility for Linux:

hopper:~# ./cpqsetup
Firmware CD Supplemental Update / Online ROM Flash Component for Linux - Smart Array 6400
* Version of rom to be flashed: 2.84
* Number of controllers: 1
* The version of existing Array ROM is 2.80
* 1 controller(s) will be flashed
* This operation may take about 2 minutes
Flash ROMs Now? (Yes/No): Yes
Flashing 1 controller(s), please wait....
Success:  Product 409c0e11 at controller position 0
with old version 2.80 has been updated with new version 2.84.
ROM Flash complete.  New firmware will take effect when the server is rebooted.
As part of the reboot process, you should power cycle the server and any
external drive arrays.

Related posts:

  1. Howto: Install Ruby and Rails on Debian or Ubuntu
  2. Howto: Create your own Debian or Ubuntu package repository
  3. Howto PHP / Java bridge on Debian
  4. Howto Install Oracle on Debian
  5. Upgrade Debian Etch to Debian Lenny
  6. How To Update A Garmin Nuvi (Firmware and Maps)
  7. Howto Install Sun Java on Debian Etch
  8. Howto Create Generate a Certificate Signing Request
  9. Howto install Sun Java on Debian Sarge
  10. Howto install Java on Debian Sarge

Comments

Upgrade Debian Etch to Debian Lenny

Upgrading distributions are not always easy, but on Debian it is quite easy.

1. Edit and change keywords like stable or etch to lenny

sudo nano /etc/apt/sources.list

2. Update and upgrade:

sudo apt-get update && sudo apt-get dist-upgrade

Related posts:

  1. Howto Install Sun Java on Debian Etch
  2. Debian Backports
  3. Installing Xen on Debian Etch 4.0
  4. Update entry on Xen on Debian Etch
  5. Howto Install Oracle on Debian
  6. Howto: Install Ruby and Rails on Debian or Ubuntu
  7. Howto install Java on Debian Sarge
  8. Howto Upgrade Joomla
  9. Ubuntu Howto: Install Oracle
  10. Ubuntu Howto: Install Sun Java

Comments (1)