Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

15
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
15
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?