Created
March 7, 2011 12:15
-
-
Save lailsonbm/858430 to your computer and use it in GitHub Desktop.
Ruby 1.9.2 + Rails 3 installation in Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TESTADO NO UBUNTU SERVER 10.04 | |
# Dependencias para compilar Ruby e rodar Rails no Ubuntu | |
sudo apt-get install build-essential libssl-dev libreadline-dev zlib1g-dev sqlite3 libsqlite3-dev libxml2 libxml2-dev libxslt1.1 libxslt1-dev wget | |
# Recomendo baixar e compilar o codigo na pasta /opt | |
sudo mkdir -p /opt | |
cd /opt | |
# Baixando o codigo-fonte | |
sudo wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p180.tar.gz | |
# Descompactacao, compilacao e instalacao | |
sudo tar xvfz ruby-1.9.2-p180.tar.gz | |
cd ruby-1.9.2-p180 | |
sudo ./configure | |
sudo make | |
sudo make install | |
# Atualizando Ruby Gems | |
sudo gem update --system | |
# Instalacao de Rails | |
sudo gem install rails |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
estamos fazendo um script de instalacao como esse, mas para todos os cursos. segue o link:
https://gist.github.com/865114