![]() |
John VanDyk has been innovating with information technology for more than 20 years. Read more... |
Compiling and Installing Pubcookie on 64-bit RHEL6
Submitted by John on Thu, 2011-03-03 10:06
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:
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/mod_pubcookie.so
Reference: ...Red Hat felt the need to mess with the Apache2 build environment
- Log in to post comments
Comments
Using mod_pubcookie from EPEL
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
/etc/httpd/conf.d/modpubcookie.conf
/etc/pubcookie/config
/usr/lib64/httpd/modules/mod_pubcookie.so
/usr/sbin/keyclient
/usr/share/doc/mod_pubcookie-3.3.4a
/usr/share/doc/mod_pubcookie-3.3.4a/CHANGES.txt
/usr/share/doc/mod_pubcookie-3.3.4a/CREDITS.txt
/usr/share/doc/mod_pubcookie-3.3.4a/HACKING.txt
/usr/share/doc/mod_pubcookie-3.3.4a/LICENSE.txt
/usr/share/doc/mod_pubcookie-3.3.4a/config.html
/usr/share/doc/mod_pubcookie-3.3.4a/install-mod_pubcookie.html
/usr/share/doc/mod_pubcookie-3.3.4a/mod_pubcookie-directives.html
/usr/share/man/man8/keyclient.8.gz
/var/lib/pubcookie
There is a problem with libcrypto not being loaded which David Orman notes, solved by adding the line
LoadFile /usr/lib64/libcrypto.so
in /etc/httpd/conf.d/modpubcookie.conf. Note that the openssl-devel package is required for this, as it provides libcrypto.so.