Skip to content

Instantly share code, notes, and snippets.

@artificemm
Created March 28, 2019 16:19
Show Gist options
  • Save artificemm/f5b66dce0c5ef6b5af6788023104b88b to your computer and use it in GitHub Desktop.
Save artificemm/f5b66dce0c5ef6b5af6788023104b88b to your computer and use it in GitHub Desktop.
Instrucciones para instalar Ruby en Linux(Debian/RedHat)
--- Debian
sudo apt-get --ignore-missing install build-essential git-core curl openssl libssl-dev libcurl4-openssl-dev zlib1g zlib1g-dev libreadline6-dev libyaml-dev libsqlite3-dev libsqlite3-0 sqlite3 libxml2-dev libxslt1-dev libffi-dev software-properties-common libgdm-dev libncurses5-dev automake autoconf libtool bison postgresql postgresql-contrib libpq-dev pgadmin3 libc6-dev nodejs -y
curl -sSL https://rvm.io/mpapis.asc | gpg --import -
curl -sSL https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm install 2.6.2
rvm use 2.6.2 --default
--- RedHat
sudo yum install make automake gcc gcc-c++ kernel-devel patch libffi-devel libtool bison openssl readline readline-devel curl git-core zlib zlib-devel openssl-devel libyaml-devel sqlite sqlite-devel libxml2 libxml2-devel libxslt-devel autoconf glibc-devel nodejs -y
curl -L get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm install 2.6.2
rvm use 2.6.2 --default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment