# git clone https://github.com/rbenv/rbenv.git /usr/local/rbenv
# git clone https://github.com/rbenv/ruby-build.git /usr/local/rbenv/plugins/ruby-build
# vi /etc/profile.d/rbenv.sh
export RBENV_ROOT=/usr/local/rbenv
export PATH=${RBENV_ROOT}/bin:$PATH
eval "$(rbenv init --no-rehash -)"
# source /etc/profile.d/rbenv.sh
# visudo
Defaults env_keep += "RBENV_ROOT"
Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/rbenv/bin:/usr/local/rbenv/shims
# RUBY_VERSION=1.9.3-p551
# BUNDLER_VERSION=1.0.18
# rbenv install -v $RUBY_VERSION
# rbenv rehash
# rbenv global $RUBY_VERSION
# rbenv versions
# ruby -v
# which ruby
# gem install --no-ri --no-rdoc bundler -v $BUNDLER_VERSION
# rbenv rehash
Last active
November 15, 2019 02:04
-
-
Save oppara/e00b9fe3db97303f5fe65b3627491c78 to your computer and use it in GitHub Desktop.
install rbenv global
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment