1
1

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.

Win環境で複数のRubyを管理

1
Posted at

Win環境で複数のRubyを管理

Pik

インストール

  • msiをダウンロードしてインストーラでインストール
  • デフォルトのインストール先はc:\pik
  • パスは通らないので、自身で環境変数を設定するか、毎回c:\pik上で作業をする

操作

  • インストール済みのrubyをpikに登録

pik add  "c:\Program Files (x86)\Ruby-2.1\bin"

メッセージ
INFO: Adding:  [ruby-]2.1.2-p95
      Located at:  C:\Program Files (x86)\Ruby-2.1\bin

pik add  c:\Ruby200-x64\bin

メッセージ
INFO: Adding:  [ruby-]2.0.0-p451
      Located at:  C:\Ruby200-x64\bin
  • リストを表示
pik list
メッセージ
=> ruby-2.0.0-p451
   ruby-2.1.2-p95
  • 切り替え
pik use ruby-2.1.2-p95
  • リストを表示
pik list
メッセージ
   ruby-2.0.0-p451
=> ruby-2.1.2-p95
  • 切り替わったことをDosコマンドから確認
ruby --version
メッセージ
ruby 2.1.2p95 (2014-05-08 revision 45877) [i386-mswin32_100]
1
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?