Install libvmod-header with Varnish

From Brian Nelson Ramblings
Revision as of 17:03, 20 July 2014 by Brian (Talk | contribs) (Install Varnish but Not Install it)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Install libvmod-header with Varnish

Back story, varnish was already installed on the server but we did not have access to the scr directory as it was installed with YUM.

Install Varnish but Not Install it

Need the following installed before it would allow me to make (varnish and libvmod-header)

yum install python-docutils automake autoconf libtool ncurses-devel libxslt groff pcre-devel pkgconfig
mkdir ~/download

First check the version of varnish you are running as you will need the src files to install this

varnishd -V

Now that you have the version, you can download the source from varnish-cache.org

varnishd (varnish-3.0.3 revision 9e6a70f)
Copyright (c) 2006 Verdens Gang AS
Copyright (c) 2006-2011 Varnish Software AS

Now get the vanrish files from varnish-cache.org

cd /~download
wget http://repo.varnish-cache.org/source/varnish-3.0.3.tar.gz
tar -zxvf varnish-3.0.3.tar.gz
cd varnish-3.0.3/

Lets make it but not install it, yum already had, we just need the src built to install libvmod-header

sh autogen.sh
./configure
make

Now we did not need to go any further as we did not need to install it.

Install libvmod-header from GIT

Get the libvmod-header from GIT (https://github.com/varnish/libvmod-header)

cd ~/download
git clone https://github.com/varnish/libvmod-header.git
cd libvmod-header
./autogen.sh 
./configure VARNISHSRC=/home/nexbnelson/download/varnish-3.0.3 VMODDIR=/usr/lib64/varnish/vmods/
make
make install

Lets check and make sure its there

cd /usr/lib64/varnish/vmods/
ls

You should now see it installed there

libvmod_header.a  libvmod_header.la*  libvmod_header.so*  libvmod_std.so*

Restart Varnish

Lets restart varnish and make sure its starts back up.

service varnish restart

or

/etc/init.d/varnish restart