open your current r.cgi script, and copy these variables:

require "../config.pl";
require "globals.pl";

download this file:

r.zip

Unzip the file

Edit r.cgi and make sure the require variables are the same as your old one.

Now upload your r.cgi over your old r.cgi. When uploaded be sure to upload in ascii mode.