简体   繁体   中英

Why is my command prompt getting stuck after I type ruby?

I am getting an error when trying to run Ruby on my Mac. I installed it using RVM. But when I type it in, it gets stuck on the command prompt, like its waiting. The same happens with the default. I have no idea why this is happening. Running 10.7.3. Any ideas?

It is waiting, and it's waiting for input. The ruby command takes in input till it receives the EOF character, and then executes it. Typically you pass it a file to run or pipe to stdin .

Perhaps you're trying to run interactive Ruby (IRb)? In which case you should run irb .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM