Before attempting compilation, make sure you have the following prerequisites installed (and Apache of course):
yum install gcc mod_ssl openssl-devel httpd-devel
Then you're ready:
curl -O http://www.pubcookie.org/downloads/pubcookie-3.3.4a.tar.gz
tar xzvf pubcookie-3.3.4a.tar.gz
cd pubcookie-3.3.4a
./configure
make top_builddir=/usr/lib64/httpd top_srcdir=/usr/lib64/httpd
Then with sudo or as root: