Skip to content

Instantly share code, notes, and snippets.

@bvanrijn
Last active February 26, 2020 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bvanrijn/d15b17cf3b2fefe18d2eb27d20cdaa95 to your computer and use it in GitHub Desktop.
Save bvanrijn/d15b17cf3b2fefe18d2eb27d20cdaa95 to your computer and use it in GitHub Desktop.
How to build Ruby from source on Ubuntu 18.04

⚠️ Warning: This will install an unstable version of Ruby with the latest changes.

apt update
apt install autoconf bison build-essential gcc git libedit-dev libffi-dev libgdbm-dev libqdbm-dev libreadline-dev libssl-dev make ruby zlib1g-dev
git clone --depth 1 https://github.com/ruby/ruby
cd ruby
autoconf
./configure
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment