你的分享就是我们的动力 ---﹥

ubuntu下安装ruby on rails环境

时间:2013-06-18 14:35来源:www.chengxuyuans.com 点击:
1. root权限下安装包
sudo apt-get update
sudo apt-get upgrade
 
sudo apt-get install -y wget curl gcc checkinstall libxml2-dev libxslt-dev sqlite3 libsqlite3-dev libcurl4-openssl-dev libreadline6-dev libc6-dev libssl-dev libmysql++-dev make build-essential zlib1g-dev libicu-dev redis-server openssh-server git-core python-dev python-pip libyaml-dev postfix
 
2.安装MySQL:

sudo apt-get install -y mysql-server mysql-client libmysqlclient-dev

3.安装ruby
wget http://ruby.taobao.org/mirrors/ruby/1.9/ruby-1.9.3-p429.tar.gz
tar xfvz ruby-1.9.3-p429.tar.gz
cd ruby-1.9.3-p429
./configure
make
sudo make install

4.安装rails3.2
使用淘宝镜像安装速度比较快。
gem source --remove https://rubygems.org/
gem source -a http://ruby.taobao.org/
gem source -l #确保只有http://ruby.taobao.org/
gem install rails

到此rails的环境就安装完了。

转载注明地址:http://www.chengxuyuans.com/os/softwaretutorial/64927.html

推荐文章