Last active
January 23, 2024 22:45
-
-
Save waleo/66dac0a4818a2376572d8f398b6ca702 to your computer and use it in GitHub Desktop.
How to install Ruby 2.5.9 on newer systems
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
# On Jan 23 2024, I had a very difficult time installing ruby 2.5.9 on my Manjaro Linux system using rbenv. | |
# I already had openssl 1.1 installed, yet I had difficulty getting rbenv to use the correct openssl. | |
# I also installed the latest version of ruby-build which did not seem to help | |
# This is what helped. I created a shell script with the following content, did chmod u+x and ran it: | |
# This was adapted from here for my Linux system: https://github.com/rbenv/ruby-build/issues/1691#issuecomment-777102931 | |
export LDFLAGS="-L/lib/openssl-1.1" | |
export CPPFLAGS="-L/lib/openssl-1.1" | |
export PKG_CONFIG_PATH="/lib/openssl-1.1/pkgconfig" | |
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=/lib/openssl-1.1" | |
rbenv install 2.5.9 | |
# Next steps | |
# gem install bundler -v 1.17.3 | |
# bundle install | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment