---
title: "[RoR小学生] - Build RoR on Ubuntu 12.04 LTS"
author: "aaronluo"
date: "2014-07-31T15:45:40Z"
tags: []
categories: ["编程语言"]
slug: "ror-build-ror-on-ubuntu-12-04-lts"
draft: false
lastmod: "2014-07-31T15:45:40Z"
id: 2098699
url: "https://aaronluo.iteye.com/blog/2098699"
---

1\. Install Curl

     *sudo apt-get install curl*

2\. Install Git

     *sudo apt-get install git-core*

     configure the Git

     *git config --global user.name "aaronluo"*

     *git config --global user.mail [kinglz2003@hotmail.com](mailto:kinglz2003@hotmail.com)*

 

3\. Install RVM

     *\\curl -sSL [https://get.rvm.io](https://get.rvm.io/) | bash -s stable*

     *source ~/.rvm/scripts/rvm*

     *rvm requirements*

 

4\. Install Ruby & Rails

     *rvm list known*

     *rvm install 1.9.3*

     *rvm use 1.9.3 --default*   

     *gem update --system*

     *gem update*

     *gem install rails*

 

6\. Install Google Chrome

 *cd /tmp*

*wget [https://dl.google.com/linux/direct/google-chrome-stable\_current\_i386.deb](https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb)*

*sudo dpkg -i google-chrome-stable\_current\_i386.deb*

 

To fix "errors were encountered while processing"

*sudo apt-get -f install*

 

7\. Install JDK 1.7

     *sudo add-apt-repository ppa:webupd8team/java*  
     *sudo apt-get update*  
     *sudo apt-get install oracle-java7-installer*

     *sudo apt-get install oracle-java7-set-default*

 

8\. Install RubyMine 6

     Download proper installation package from [www.jetbrains.com/ruby/download](http://www.jetbrains.com/ruby/download)

     Move it to /usr folder and unpack it

     cd ./bin 

     ./rubymine.sh

 

9\. Install MySQL

     *sudo apt-get install mysql-server*

     This command will install MySQL server, client and other dependencies. After installation, MySQL server will start automatically. To check it

     *sudo netstat -tap | grep mysql*

     To restart MySQL server

     *sudo service mysql restart*

     *sudo service mysql stop*

     *sudo service mysql start*