yum install gcc-c++
yum install git curl bison patch make
yum install readline readline-devel zlib zlib-devel libyaml-devel libffi-devel iconv-devel
yum install libxslt-devel sqlite-devel openssh openssl-devel
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
source ~/.bash_profile
rvm install 1.9.3
Este comando instala:
- Ruby 1.9.3p125
- IRB 0.9.6
- RubyGems 1.8.17
- Bundler 1.0.22
Caso dê o erro: "ERROR: rvm requires autoreconf to install the selected ruby interpreter however autoreconf was not found in the PATH." instale o pacore automake.
sudo apt-get install automake
rvm use 1.9.3 --default
Caso dê o erro: "RVM is not a function, selecting rubies with 'rvm use ...' will not work." vá até o menu Editar - Perfis do Terminal. Clique em editar e na aba "Título e Comando" marque o checkbox "Executar comando como shell de sessão".
$ wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
$ tar xzvf yaml-0.1.4.tar.gz
$ cd yaml-0.1.4
$ ./configure --prefix=/usr/local
$ make
$ sudo make install
$ wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz
$ tar xzvf ruby-1.9.3-p0.tar.gz
$ cd ruby-1.9.3-p0
$ ./configure --prefix=/usr/local --enable-shared --disable-install-doc --with-opt-dir=/usr/local/lib
$ make
$ sudo make install
$ wget http://rubyforge.org/frs/download.php/75711/rubygems-1.8.15.tgz
$ tar -zxvf rubygems-1.8.15.tgz
$ cd rubygems-1.8.15
$ sudo ruby setup.rb
$ gem install bundler
gem install padrino
git clone [email protected]:marvinsiq/emperor.git
cd emperor
bundle install
padrino rake ar:migrate
padrino rake seed
padrino start