how to install ruby on rails 3 on ubuntu LTS 10.04
1.install below new package
#sudo apt-get install gcc g++ build-essential libssl-dev libreadline5-dev zlib1g-dev linux-headers-generic libsqlite3-dev mysql-server mysql-client libmysql-ruby libmysqlclient-dev
2.download ruby 1.9.2 package and install it
#sudo tar zxvf ruby-1.9.2-p0.tar.gz
#cd ruby-1.9.2-p0
#./configure
#make
#make install
3.add /usr/local/bin/ruby to /etc/environment
#vim /etc/environment
#source /etc/environment
4.install rubygems
#sudo apt-get install rubygems
5.gem install mysql
#gem install mysql
6.gem install sqlite3-ruby
# gem install sqlite3-ruby
沒有留言:
張貼留言