15
10

More than 5 years have passed since last update.

rbenv: ruby: command not found The `ruby' command exists in these Ruby versions:

Posted at

rbenvでrubyをインストールした後に
ruby -vをすると以下のエラーが出る。

rbenv: ruby: command not found

The `ruby' command exists in these Ruby versions:
  2.2.3

これは、どのrubyのバージョンを使うかをちゃんと特定していないために起こるエラーなのでちゃんと指定してあげる。

まずインストールしたrubyのバージョンの確認をする。

$ rbenv versions
 2.2.3

これでバージョンを特定してあげる。

$ rbenv global 2.2.3

そうすれば、エラーは出なくなる。

15
10
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
15
10