1- RUBY e RAILS NO UBUNTU (10.x and 11.x)
2- ===
1+ # RUBY e RAILS NO UBUNTU (10.x and 11.x)
32
43Step by step guide to install Rails (last version) and Ruby (1.9.2) on Ubuntu. We also cover some GEdit setting with GMate plugin.
54
6- ** 1º Update apt-get**
5+ ## 1º Update apt-get
76
87Open the terminal and run:
98
109 sudo apt-get update
1110
12- ** 2º Install GIT and Curl**
11+ ## 2º Install GIT and Curl
1312
1413 sudo apt-get install build-essential git-core curl
1514
16- ** 3º Install RVM (Ruby Version Manager)**
15+ ## 3º Install RVM (Ruby Version Manager)
1716
1817RVM let you install and manage more than one Ruby version. But here we'll use only one:
1918
2019 bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
2120
22- ** 4º Loading RVM**
21+ ## 4º Loading RVM
2322
2423Run de code below
2524
@@ -29,11 +28,11 @@ Reload the file (in Terminal):
2928
3029 . ~/.bashrc
3130
32- ** 5º Installing the other essential packages**
31+ ## 5º Installing the other essential packages
3332
3433 sudo apt-get install build-essential 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 ncurses-dev automake libtool bison subversion
3534
36- ** 6º Installing Ruby**
35+ ## 6º Installing Ruby
3736
3837Run (this command will take a couple of minutes)
3938
@@ -48,11 +47,11 @@ Now this should work:
4847 ruby -v
4948 ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-linux]
5049
51- ** 7º Installing Rails**
50+ ## 7º Installing Rails
5251
5352 gem install rails
5453
55- ** 8º First app **
54+ ## 8º First app
5655
5756To test everything you can creating your first app:
5857
@@ -71,8 +70,9 @@ Now you can run:
7170
7271 rails server
7372
74- ** MySQL e PostgreSQL (OPITIONAL)**
73+ ## MySQL e PostgreSQL (OPITIONAL)
7574
75+ ### For MySQL
7676In development mode most of the time sqlite is enough. If you want to use MySQL the right Gem is mysql2 but before you should do:
7777
7878 sudo apt-get install libmysqlclient16-dev
@@ -81,7 +81,7 @@ And after:
8181
8282 gem install mysql2
8383
84- For PostgreSQL:
84+ ### For PostgreSQL:
8585
8686 sudo apt-get install libpq-dev
8787
@@ -90,8 +90,7 @@ And after:
9090 gem install pg
9191
9292
93- Setup GEdit
94- ===
93+ # Setup GEdit
9594
9695For GEdit we'll use GMate plugin. In Terminal:
9796
0 commit comments