One of the things I've found is Ruby likes to mess us ordinary mortals about; or at least dependencies do.

I'm part-way through documenting my setup woes - there's an outline here:

https://github.com/bazbt3/raspberrypisetup

Chances are that I'll start afresh again sooner-or-later, and do it right first time. ;)