Last active
February 4, 2022 02:31
-
-
Save captainpete/11297216 to your computer and use it in GitHub Desktop.
ruby-install rbx 2.2.6, Rubinius Mavericks "error: ... rl_username_completion_function" workaround
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
# If installing Rubinius 2.2.6 fails | |
# with an error containing 'rl_username_completion_function' | |
ruby-install rbx 2.2.6 # <= fails | |
# Remove and re-extract Rubinius | |
cd ~/src && rm -fr rubinius-2.2.6 && tar -xf rubinius-2.2.6.tar.bz2 | |
# Make sure LLVM is installed | |
brew install llvm | |
# Make sure the other libs are present | |
brew install openssl readline libyaml gdbm | |
# Re-configure Rubinius | |
cd ~/src/rubinius-2.2.6 | |
export GEM_HOME="$HOME/src/rubinius-2.2.6/vendor/gems" | |
bundle install | |
./configure --prefix="/Users/pete/.rubies/rbx-2.2.6" \ | |
--with-opt-dir="/usr/local/opt/openssl:/usr/local/opt/readline:/usr/local/opt/libyaml:/usr/local/opt/gdbm" \ | |
--skip-system --skip-prebuilt --llvm-path="/usr/local/opt/llvm" | |
# Build | |
rake build | |
# then install | |
rake install | |
# optionally install all Rubinius files | |
rake install:files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same issue when looking at the log file after running rvm install 2.7.2