Last active
May 18, 2019 13:15
-
-
Save makevoid/3729f3397fe2fdeee9a7371ef551940e to your computer and use it in GitHub Desktop.
Install ruby 2.6 from source on debian 9
This file contains 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
# example usage: | |
# bash <(curl -s https://gist.githubusercontent.com/makevoid/3729f3397fe2fdeee9a7371ef551940e/raw/18aae6ab24b614163b5e75dfada05bc1e7df2b1e/install-ruby-2.6-from-source-debian9.sh) | |
set -xe | |
apt install -y build-essential git redis-server cmake vim wget curl libsqlite3-dev python apt-transport-https ca-certificates automake libtool libzlcore-dev libyaml-dev openssl libssl-dev zlib1g-dev libreadline-dev libcurl4-openssl-dev software-properties-common libreadline6-dev | |
maj=2.6 | |
min=3 | |
vers="$maj.$min" | |
mkdir -p tmp | |
cd ~/tmp | |
wget https://cache.ruby-lang.org/pub/ruby/$maj/ruby-$vers.tar.gz && tar xvfz ruby-$vers.tar.gz | |
cd ~/tmp/ruby-$vers | |
./configure | |
make | |
make install | |
gem i bundler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment