Last active
December 24, 2024 04:16
-
-
Save makevoid/2be2170f17801c761aadfe7d9978b003 to your computer and use it in GitHub Desktop.
Install Ruby 3 from soure on Debian (11)
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
# onliner usage: | |
# bash <(curl -s https://gist.githubusercontent.com/makevoid/2be2170f17801c761aadfe7d9978b003/raw/ea38c958d092b1000518f8614cab815d6f5a09ac/install-ruby-3-debian.sh) | |
set -xeuo pipefail | |
apt update -y | |
apt install -y build-essential git redis-server cmake vim wget curl libsqlite3-dev python3 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 | |
mkdir -p ~/tmp | |
cd ~/tmp | |
wget https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.6.tar.xz | |
tar -xvf ruby-3.3.6.tar.xz | |
cd ruby-3.3.6/ | |
./configure | |
make | |
make install | |
gem i -N bundler | |
gem update --system | |
chown -R admin:admin /usr/local/lib/ruby/gems/3.3.0 | |
chown -R admin:admin /usr/local/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment