Configure RubyonRails Development Environment notes under Ubuntu12.10. // First system update // for Ubuntu system it is best to change the software source to mirrors.163.com sudoapt-getupdatesudoapt-getupgrade // install sublimesudoadd-apt-repositoryppa: webupd8team/sublime-text-2sudoapt-
Configure Ruby on Rails Development Environment notes in Ubuntu 12.10.
// First, the system is updated.
// For Ubuntu, it is best to change the software source to mirrors.163.com.
Sudo apt-get update
Sudo apt-get upgrade
// Install sublime
Sudo add-apt-repository ppa: webupd8team/sublime-text-2
Sudo apt-get update
Sudo apt-get install sublime-text
// Install necessary kits
Sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev
// Install ruby-deep linux
Sudo apt-get install rails1.9.3
// Install ruby-ubuntu
\ Curl-L https://get.rvm.io | bash-s stable -- ruby
// Install rails
Sudo gem install rails (you don't need to try sudo for ubuntu first)
// Install sqlite3
Sudo gem install sqlite3 (you don't need to try sudo for ubuntu first)
// Install git
Sudo apt-get install git
Git config -- global user. name "your username"
Git config -- global user. email "your mailbox"
// Generate an ssh key
// Specific reference https://help.github.com/articles/generating-ssh-keys
Ssh-keygen-t rsa-C "Enter your email address here"
/Home/you/. ssh/id_rsa // you are your username, which is used to save the ssh key
Enter the password: (do not enter)
Refer to this webpage for more information.
Apply for an account at https://github.com/
Both the user name and email address must have just been lost.
Rails server error:
Sudo apt-get install python-software-properties
Sudo add-apt-repository ppa: chris-lea/node. js
Sudo apt-get update
Sudo apt-get install nodejs