Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Ruby Basics (Retired) How Ruby Works Hello World!

Cant run hello.rb file. Anyone has some ideas.

Here is what im trying to run:

puts "Hello World!"

and here is what i get:

treehouse:~/workspace$ rupy hello.rb                                                                                                  
bash: rupy: command not found                                                                                                         
treehouse:~/workspace$ irp                                                                                                            
bash: irp: command not found                                                                                                          
treehouse:~/workspace$ 

4 Answers

Brandon McClelland
Brandon McClelland
4,645 Points

You're using p instead of b for both of these: ruby and irb

Brandon McClelland
Brandon McClelland
4,645 Points

You need to type ruby, not rupy.

okay then. Why isnt the irp command working.

rowend rowend
rowend rowend
2,926 Points

Because the command irp does not exists. The command that works is irb.

Thanks