Created
December 14, 2017 16:19
-
-
Save wilxsv/c1698153dd1355e5acb0e67286dce568 to your computer and use it in GitHub Desktop.
instalacion de ruby y rails en un entorno de desarrollo, instala cualquier version de ruby y cualquier version de rails
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
sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev curl git-core | |
git clone https://github.com/rbenv/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
source ~/.bashrc | |
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build | |
#lista las versiones de ruby [rbenv install -l] | |
rbenv install 2.3.0 | |
rbenv global 2.3.0 | |
echo "gem: --no-document" > ~/.gemrc | |
gem install bundler | |
gem env home | |
gem install rails | |
gem search '^rails$' --all | |
cd /tmp | |
\curl -sSL https://deb.nodesource.com/setup_6.x -o nodejs.sh | |
cat /tmp/nodejs.sh | sudo -E bash - | |
sudo apt-get install -y nodejs | |
#Listo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment