domingo, 2 de agosto de 2015

Instalar rbenv, ruby-build y bundler en Ubuntu

# instalamos dependencias
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
# inatalamos rbenv
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc

exec $SHELL
type rbenv #=> "rbenv is a function"
# instalamos ruby-build
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
# Listado de las versiones de ruby
$ rbenv install -l
# Instalamos ruby 2.2.2, lo designamos por defecto y lo comprobamos
rbenv install 2.2.2
rbenv global 2.2.2
ruby -v
# para evitar intalar la documentecion de la gemas
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
# instalamos bundler
gem install bundler
# Repo rbenv https://github.com/sstephenson/rbenv
# Repo ruby-build https://github.com/sstephenson/ruby-build
# web bundler http://bundler.io/
# Recordatorio RVM, instalación y uso http://en-la-mina.blogspot.com/2012/01/recordatorio-rvm-instalacion-y-uso.html

No hay comentarios:

Publicar un comentario