Compiling and Installing Pubcookie on 64-bit RHEL6

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
tar xzvf pubcookie-3.3.4a.tar.gz
cd pubcookie-3.3.4a
make top_builddir=/usr/lib64/httpd top_srcdir=/usr/lib64/httpd

Then with sudo or as root:

make top_builddir=/usr/lib64/httpd top_srcdir=/usr/lib64/httpd install

You'll need to tell Apache to load pubcookie. In /etc/httpd/conf/httpd.conf or /etc/httpd/conf.d/pubcookie.conf:

LoadModule pubcookie_module modules/

Reference: ...Red Hat felt the need to mess with the Apache2 build environment


The above now fails for me on RHEL 6.3. I get

/usr/bin/install -c -m 755 keyclient /usr/local/pubcookie
/usr/bin/install: cannot stat `keyclient': No such file or directory
make: *** [install] Error 1

Instead, I used the mod_pubcookie package from EPEL which installs the following:

# rpm -ql mod_pubcookie

There is a problem with libcrypto not being loaded which David Orman notes, solved by adding the line

LoadFile /usr/lib64/

in /etc/httpd/conf.d/modpubcookie.conf. Note that the openssl-devel package is required for this, as it provides