- Notifications
You must be signed in to change notification settings - Fork129
Installer and doctor scripts for rbenv
License
rbenv/rbenv-installer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Therbenv-installer
script idempotently installs or updates rbenv on yoursystem. If Homebrew is detected, installation will proceed usingbrew install/upgrade
. Otherwise, rbenv is installed under~/.rbenv
.
Additionally,ruby-build is alsoinstalled ifrbenv install
is not already available.
with curl:
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer| bash
alternatively, with wget:
wget -q https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer -O-| bash
NoteThe installer script is meant for casual use on your own development machine.For automating installation across machines it's better toavoid using thisscript in favor of fine-tuning rbenv & ruby-build installation manually. Someenvironments—such as container images meant for either Ruby development orproduction—should not be switching between multiple Ruby versions at all, so ifyou are installing rbenv there, you are likely doing something wrong.
You can verify the state of your rbenv installation with:
with curl:
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-doctor| bash
alternatively, with wget:
wget -q https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-doctor -O-| bash