in Backend Tech, Tips

reference links for rails and git on ubuntu lucid

For ruby and rails:
(I was getting this message “File not found: lib” and finally found the answer after googling..)

sudo apt-get install ruby-full


tar -xvf rubygems-1.3.7.tgz

cd rubygems-1.3.7/

sudo ruby setup.rb

sudo ln -s /usr/bin/gem1.8 /usr/bin/gem

sudo gem install rdoc

sudo gem install rails

sudo aptitude build-dep git-core


tar xvzf git-1.7.1.tar.gz

cd git-1.7.1/



sudo make install

git –version

For mysql5 after the installation:

  • to start mysql: sudo service mysql start
  • to stop mysql: sudo service mysql stop
  • to restart mysql: sudo service mysql restart

It’s NOT these:

sudo /etc/init.d/mysql restart
sudo /etc/init.d/mysql stop
sudo /etc/init.d/mysql start

UPDATE (nov 23, 2010):

According to ruby doc, 1.8.7 p248 and p249 have marshaling bugs and it recommends 1.9.2. And I found this guide to upgrade to 1.9.2.

Also installation RVM on ubuntu.