Created
December 10, 2024 23:36
-
-
Save FLWallace105/f4775d39e3beb1c7f0e870d4b711876e to your computer and use it in GitHub Desktop.
Install Ruby 3.3.6 on Ubuntu 24.04 ARM64
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
# Ubuntu 24.04 ARM version is missing default libraries, seems like only RBENV can build ruby 3.3.6 on ARM. | |
# Strategy: install libraries needed, build with RBENV. | |
# ARM64 is half the cost for Intel on AWS. | |
sudo apt update | |
sudo apt install build-essential git | |
sudo apt-get install libffi-dev libffi8 | |
sudo apt-get install libyaml-0-2 | |
sudo apt-get install libtool | |
sudo apt-get install libyaml-dev | |
https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash | |
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash | |
less .bashrc | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
source ~/.bashrc | |
rbenv install ruby-build | |
rbenv install --list-all | |
rbenv install 3.3.6 | |
ruby --version | |
mkdir myproj | |
cd myproj/ | |
rbenv local 3.3.6 | |
ruby --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment