buster:rbenv
rbenv
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
(.bashrc/.zshrc already taken care of in .shellrc)
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
(may also want the rehash plugin rbenv-gem-rehash has been integrated into rbenv core, woop.
rbenv-gem-rehash)
Don't bother compiling the bash extension.
~/.rbenv/bin is already in your $PATH because you won config.
~/.rbenv/bin/rbenv init
Which will tell you to add this to .zshrc (should be done)
# Load rbenv automatically by appending the following to ~/.zshrc: eval "$(rbenv init -)"
Restart your shell because .shellrc only kicks in at startup.
Ignore the eval shit, again, you won. Check if you want to check:
# don't pipe to zsh -- it is a bash-only script curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
ruby-build
Prerequisites for building a ruby (needed on a pi):
apt-get install libssl-dev libreadline-dev
rbenv install --list rbenv install 2.6.2 -k # 11/19 stable
-k keeps the source, which can help compiling some gems.
(Requisites: https://github.com/rbenv/ruby-build/wiki#suggested-build-environment)
buster/rbenv.txt · Last modified: 2019/11/08 14:32 by slack