in reply to Errors while generating PDF report

error: Undefined subroutine &Compress::Zlib::compress

Missing Compress::Zlib perhaps?

Might want to check the FAQ as well.