Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Matty Gabbitas
5,933 PointsTerminal is freezing when running ruby hello.rb
when running command ruby hello.rb nothing happens, this is my code
name = gets
puts "Hello #{name}"
i am running ruby 1.9 should i be running 2.0 like jason is?
2 Answers

Ethan Lowry
Courses Plus Student 7,323 PointsYour code appears valid (you have those on 2 separate lines in the real thing, right?).
If you just type ruby -v
in your terminal, do you get your ruby version number back successfully?
How about typing irb
- does that successfully open a ruby console where you can try out these commands?
Just trying to establish if your environment is set up and working correctly.

rowend rowend
2,926 PointsMaybe the console is waiting for user input....