OSMC + Hdhomerun +TVHeadend + zap2xml (zap2xml problem)

Trying to set up zap2xml using this howto:
http://paynelogic.com/tag/zap2xml/

Got to this line in the instructions:
./zap2xml.pl -C /home/hts/zap2xml/zap2xml.conf

Which I modified to this:
./zap2xml.pl -C /home/osmc/.hts/zap2xml/zap2xml.conf

Then I get this error:
osmc@osmc:~/.hts/zap2xml$ ./zap2xml.pl -C /home/osmc/.hts/zap2xml/zap2xml.conf
./zap2xml.pl: line 1: syntax error near unexpected token <' ./zap2xml.pl: line 1: <!doctype html><meta

The error goes on quite a bit, I will upload the complete error and add the link in a few.

Thanks in advance

Here is the whole error

http://paste.osmc.io/xurajijojo.apache

ok I think my wget command may have jacked up my file.
wget http://phatic.tk -O zap2xml.pl
So i downloaded it via windows and copied it over with osmc file manager and it is a different file size.
Am now getting an error message about missing perl libraries.
Is there a install command line to add perl libraries?

error:
osmc@osmc:~/.hts/zap2xml$ ./zap2xml.pl -C /home/osmc/.hts/zap2xml/zap2xml.conf
Can’t locate Compress/Zlib.pm in @INC (you may need to install the Compress::Zlib module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at ./zap2xml.pl line 26