Configure the RubyonRails development environment under Ubuntu12.10

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.