Advanced Software Engineering
The first Class
Part I
1 Install Essential Dependecies
- sudo apt-get update
- sudo apt-get install-y build-essential OpenSSL curl Libcurl3-dev libreadline6 libreadline6-dev git-core zlib1g Zlib1g-dev Libssl-dev libyaml-dev libxml2-dev libxslt-dev autoconf automake libtool imagemagick libmagickwand-dev Libpcre3-dev Libs Qlite3-dev
2 Install rbenv Environment
- git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
- echo ' Export path= ' $HOME/.rbenv/bin: $PATH "' >> ~/.BASHRC
- Echo ' eval ' $ (rbenv init-) "' >> ~/.BASHRC
- SOURCE ~/.BASHRC
- Type rbenv
- git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
3 Install Ruby Environment
List all version of Ruby, and then you can chose one to install
- Rbenv install-l
- Rbenv Install 1.9.3-p448
4 Set up Ruby Version and change Gem Source
- Rbenv Global 1.9.3-p448 # accroding to the former one
- Rbenv Rehash
- Gem Sources--remove https://rubygems.org/
- Gem Sources-a http://ruby.taobao.org/
5 Install Rails
- Gem Install bundler Rails
6 Check The Version
- Ruby-v
- Gem-v
- Rake-v
- Rails–v
7 Install node. js
- sudo add-apt-repository ppa:chris-lea/node.js
- sudo apt-get update
- sudo apt-get install Nodejs
8 Test the Environment
- CD ~
- mkdir Rails
- CD Rails
- Rails New Blog
- CD Blog
- Rails Server
- http://127.0.0.1:3000
9 Complete
Ubuntu Install rbenv & Ruby & Rails (Week I)