LoginSignup
1
0

More than 3 years have passed since last update.

rbenvの使い方

Posted at

rbenv(アールビーエンブ)はRubyのバージョンを管理するgem

rbenv install version
で指定したversionのrubyをinstallしている。
現在インストールしたrubyのversionはrbenv versionsで確認できる。
現在反映されているrubyのversionはrbenv versionで確認できる。

rbenv local version
でrbenv install versionでinstallしたRubyの設定をlocal環境に反映させれる。
例)

.ruby-versionがバージョンを管理している。中身を除くと、あら単純!!
Default_と_「rbenv_bundler等」を編集_-_Qiita.png

以下おまけ
rbenvでrubyをインストールするとbundlerがないので、gem install bundlerをする必要がある。

その後、bundle installを実行した。
もしかするとmysqlのインストールでエラーになるかも、、、
下記のを参考にした。
ファーストトライ
セカンドトライ
サードトライ

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0