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
David McGraw
Courses Plus Student 9,711 Pointsruby: 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
Maciej Czuchnowski
36,441 PointsDid you install Ruby on your system?
David McGraw
Courses Plus Student 9,711 PointsHello, I have Ruby v 2.0.0. and used the proper folder on the terminal
Maciej Czuchnowski
36,441 PointsDoes this command return anything? ruby -v
What system are you on?
David McGraw
Courses Plus Student 9,711 PointsI'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.
Maciej Czuchnowski
36,441 PointsDoes ruby -v show you the version of Ruby or does it give an error?
Maciej Czuchnowski
36,441 PointsMaciej Czuchnowski
36,441 PointsAnd did you go to the proper folder in your terminal?