Manage the version of Ruby itself with rbenv

What is this?

This is a memo when installing via the version control tool when installing Ruby. It is explained in the installation on Ubuntu.

procedure

Install rbenv

$ sudo apt-get update
$ cd
$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
$ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
$ echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
$ source ~/.bashrc

Install Ruby

Specify the version you like, install it, and specify to use that version.

$ rbenv install -l
$ rbenv install 2.7.1
$ rbenv global 2.3.1

Install bundler

$ gem install bundler
$ rbenv rehash

Install the bundle package

$ bundle install

Recommended Posts

Manage the version of Ruby itself with rbenv
Ruby version switching with rbenv
The ruby version is managed in the .rbenv / version file
I checked the number of taxis with Ruby
Manage multiple versions of Ruby on Mac [macOS + rbenv]
Switch the version of bundler
Install Ruby 3.0.0 Preview 1 with a combination of Homebrew and rbenv
How to deal with different versions of rbenv and Ruby
What to do if you installed Ruby with rbenv but the version does not change
The version of Ruby that was installed by default on the Mac was referenced, not from rbenv
About the behavior of ruby Hash # ==
[Java version] The story of serialization
Check the version of Cent OS
Programming with ruby (on the way)
Impressions of making BlackJack-cli with Ruby
Install ruby on Ubuntu 20.04 with rbenv
[Ruby] Display the contents of variables
I tried to solve the problem of "multi-stage selection" with Ruby
[Illustration] Finding the sum of coins with a recursive function [Ruby]
Is the version of Elasticsearch you are using compatible with Java 11?
Gem list of each ruby version 2.5.x
About the version of Docker's Node.js image
Check the contents of params with pry
part of the syntax of ruby ​​on rails
[Ruby] Cut off the contents of twitter-ads
How to build an environment for any version of Ruby using rbenv
Ruby from the perspective of other languages
Extract a part of a string with Ruby
About the treatment of BigDecimal (with reflection)
Format the contents of LocalDate with DateTimeFormatter
Check the version of the standard Web software.
Easy JSON database experience with Docker ~ Try the latest version of Couchbase Server
Send a notification to slack with the free version of sentry (using lambda)
How to find the cause of the Ruby error
[Ruby] Summary of class definitions. Master the basics.
Check the version of the JDK installed and the version of the JDK enabled
[Android] [Java] Manage the state of CheckBox of ListView
Verify the contents of the argument object with Mockito
[Ruby on Rails] Until the introduction of RSpec
[Delete the first letter of the character string] Ruby
[Java] Access the signed URL of s3 (signed version 2)
The story of introducing Ajax communication to ruby
Easy JUnit test of Elasticsearch 2018 version with embedded-elasticsearch
Publish the app made with ruby on rails
Overwrite the contents of config with Spring-boot + JUnit5
The story of tuning android apps with libGDX
Calculate the similarity score of strings with JAVA
[Competition Pro] Solve the knapsack problem with Ruby
[Ruby] Code to display the day of the week
Try the free version of Progate [Java II]
Install the latest version of Jenkins on Ubuntu 16
[Ruby] Exclude duplicate elements with the uniq method.
Prepare the environment of CentOS 8 with Sakura VPS
Moved to anyenv! (Manage rbenv and nodenv with anyenv)
Specify the default value with @Builder of Lombok
Determine the current page with Ruby on Rails
Measure the distance of the maze with breadth-first search
Finding pi with the Monte Carlo method? (Ruby)
[Ruby / Rails] Inactivate Lint of update_all with Rubocop
Try the free version of Progate [Java I]
[Beginner's point of view] I tried to solve the FizzBuzz problem "easily" with Ruby!