- Notifications
You must be signed in to change notification settings - Fork 183
Ruby
Shannon Skipper edited this page Jul 19, 2026
·
119 revisions
CRuby, also known as MRI (Matz's Ruby Implementation), is the defacto Ruby and sets the standards for other Ruby implementations. CRuby can be installed with tools like ruby-install and ruby-build or Ruby requirements can be manually installed and Ruby can be built from source as shown below.
| Operating System | Command |
|---|---|
| Debian / Ubuntu | |
| RedHat / Fedora | |
| openSUSE | sudo zypper install gcc automake libffi-devel libyaml-devel openssl-devel zlib-devel |
| Arch Linux | |
| FreeBSD | |
| NetBSD | |
| macOS |
|
| Alpine Linux | |
curl https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.6.tar.xz | tar -xJ
cd ruby-4.0.6
./configure --prefix="$HOME/.rubies/ruby-4.0.6"
make
make install
curl https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.6.tar.xz | tar -x
cd ruby-4.0.6
./configure --prefix="$HOME/.rubies/ruby-4.0.6" \
--with-gmp-dir="$(brew --prefix gmp)" \
--with-libyaml-dir="$(brew --prefix libyaml)" \
--with-openssl-dir="$(brew --prefix openssl)" \
--with-zlib-dir="$(brew --prefix zlib)"
make
make install