其實我根本沒有ubuntu的系統在身旁,我也懶的去裝XDDD,因為我用的是Mac,所以我ubuntu是用網路上抓來的,所以有什麼問題的話,可以跟我反應喔
確認一下環境
ubuntu 12.04 LTS
1.先更新一下套件
$ sudo apt-get update
2.安裝git
版本管理系統!
$ sudo apt-get install git
3.安裝curl
下載工具
$ sudo apt-get install curl
4.安裝RVM
$ curl -L get.rvm.io | bash -s stable
5.載入RVM
$ source ~/.rvm/scripts/rvm
6.安裝一些套件
$ sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
7.安裝Ruby
其實接下來就跟Mac 是一樣的
$ rvm install 1.9.3
8.安裝Rails
$ gem install rails
9.打完收工
也可以試試看怎麼開一個專案
$ rails new blog
$ curl -L get.rvm.io | bash -s stable
原來是真的可以用
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 185 100 185 0 0 149 0 0:00:01 0:00:01 --:--:-- 968
100 10009 100 10009 0 0 4356 0 0:00:02 0:00:02 --:--:-- 2443k
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 125 100 125 0 0 71 0 0:00:01 0:00:01 --:--:-- 86
100 1084k 100 1084k 0 0 188k 0 0:00:05 0:00:05 --:--:-- 291k
Installing RVM to /home/timloo/.rvm/
Adding rvm PATH line to /home/timloo/.bashrc /home/timloo/.zshenv.
Adding rvm loading line to /home/timloo/.bash_profile /home/timloo/.zprofile.
# Thank you for using RVM!
好謙虛的強者。好強。