Skip to content

Instantly share code, notes, and snippets.

@marcosgz
Created September 6, 2011 13:33
Show Gist options
  • Save marcosgz/1197535 to your computer and use it in GitHub Desktop.
Save marcosgz/1197535 to your computer and use it in GitHub Desktop.
Instalando ruby & rvm no ubuntu 11.04
root@host:~# apt-get install build-essential
root@host:~# apt-get install zlib1g-dev libreadline5-dev libssl-dev libxml2-dev
root@host:~# apt-get install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 libreadline-ruby1.8 libruby1.8 libopenssl-ruby openssl sqlite3 libsqlite3-dev libsqlite3-ruby1.8 rubygems1.8
root@host:~# ln -s /usr/bin/ruby1.8 /usr/bin/ruby
root@host:~# ln -s /usr/bin/ri1.8 /usr/bin/ri
root@host:~# ln -s /usr/bin/rdoc1.8 /usr/bin/rdoc
root@host:~# ln -s /usr/bin/irb1.8 /usr/bin/irb
# Instalar rvm (Single-User installation)
marcos@host:~$ sudo apt-get install curl
marcos@host:~$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
marcos@host:~$ exit
marcos@host:~$ rvm install 1.9.2
marcos@host:~$ rvm use 1.9.2 --default
Using /home/marcos/.rvm/gems/ruby-1.9.2-p290
marcos@host:~$ nano ~/.gemrc
:benchmark: false
:verbose: true
:update_sources: true
gem: --no-ri --no-rdoc
install: --env-shebang
gemcutter_key: 66...cf
:sources:
- http://gemcutter.org
- http://gems.rubyforge.org/
- http://gems.github.com/
- http://gems.datamapper.org
:backtrace: false
:bulk_threshold: 1000
marcos@host:~$ gem install rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment