in reply to GnuPG tie to gpg binary gives broken pipe error in CGI output
There is a problem calling GnuPG from a CGI. It is related to using open2/open3 (which your library probably uses).
There is some info here, I hope it helps.