歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

ubuntu下安裝ruby on rails環境

ubuntu下安裝ruby on rails環境   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的環境就安裝完了。  
Copyright © Linux教程網 All Rights Reserved