LoginSignup
12
6

More than 5 years have passed since last update.

pythonと同じだと思い、rubyのインタプリタが起動しない問題にハマってしまった

Posted at

pythonだとコマンドpythonで2.xが、python3で3.xのpythonインタプリタが起動します。rubyも同じだと思い,

rubyコマンドを引数なしで実行していました。そうしたら次の行に改行されるけどプロンプトが表示されず処理が終わらない状態になりました。

原因はコマンドを間違えていました。rubyのインタプリタはirbでした。スクリプトファイルや-eオプションで文字列をrubyとして評価する場合にrubyコマンドを使います。

12
6
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
12
6