Fix Ruby debugger error in Linux

When you try to debug a Ruby program you can get this error: LoadError: cannot open shared object file: No such file or directory.

To fix that you should run these commands in your terminal:

cd /usr/lib/
sudo ln -s
# === OR ===
sudo ln -s 
#so basically just symlink libruby lib to (or the new one, depends on your Ruby version, e.g.

Original article: