ITeye博客

[RoR小学生] - Build RoR on Ubuntu 12.04 LTS

aaronluo · 2014-07-31 15:45 · 编程语言 · Markdown

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

 

3. Install RVM

     \curl -sSL 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

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

     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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。