The following is required:
In Debian this can be installed with the following command:
$ sudo apt-get install ruby ruby-bindata
Then you can run the program with the following command:
$ sudo ruby ping_challenge.rb