December 2014
Intermediate to advanced
352 pages
6h 36m
English
When running your Ruby scripts or using IRB, you may run into some common errors. I’ve listed a few of them here, along with tips for fixing them!
There are two common errors that you might see when running Ruby scripts from the command line: Command Not Found and “no such file or directory.” Here are some suggestions for how to resolve them.
If you’re running a Ruby script and you get some output that looks like this:
$: command not found
it probably means you accidentally typed a $ before your ruby command. I use the $ symbol to show you that you’re running a Ruby script from the command line with a filename (like ruby my_fancy_script.rb); you shouldn’t type the $ itself!
Read now
Unlock full access