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: No such file or directory -- rubypractice.rb (LoadError)

Hello there!

I've started the Ruby basics course. I started a new ruby file on Sublime Text 2, entered puts "Hello World!", then saved it, I opened my terminal and entererd ruby rubypractice.rb and I get the above error message.

What am I doing worng?

Thank you :)

3 Answers

Did you install Ruby on your system?

And did you go to the proper folder in your terminal?

Hello, I have Ruby v 2.0.0. and used the proper folder on the terminal

Does this command return anything? ruby -v

What system are you on?

I'm on a Mac, the only thing i can think off being the problem is the path to the file, although it's a very straight forward procedure, which is why I find my self scratching my head at this.

Does ruby -v show you the version of Ruby or does it give an error?