Page 1 of 1

WURFL Varnish missing libraries

Posted: Sun Jun 29, 2014 3:00 pm
by kirsten_sekhaolelo
Hello

After installing libwurfl on the varnish caching server we are unable to use it in our VCL files. system information, installation results & varnish errors listed below:

System Information :
================
root@lb2:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty

root@lb2:~# varnishd -V
varnishd (varnish-3.0.5 revision 1a89b1f)
Copyright (c) 2006 Verdens Gang AS
Copyright (c) 2006-2011 Varnish Software AS

libwurfl Installation results:
=====================
root@lb2:~# dpkg -i /tmp/libwurfl-1.5.1.2.Ubuntu_14.04.x86_64.deb
(Reading database ... 64590 files and directories currently installed.)
Preparing to unpack .../libwurfl-1.5.1.2.Ubuntu_14.04.x86_64.deb ...
Unpacking libwurfl (1.5.1.2) over (1.5.1.2) ...
Setting up libwurfl (1.5.1.2) ...

Varnish startup errors :
==================
root@lb2:~# service varnish start
* Starting HTTP accelerator varnishd [fail]
Message from VCC-compiler:
Could not load module wurfl
/usr/lib/x86_64-linux-gnu/varnish/vmods/libvmod_wurfl.so
/usr/lib/x86_64-linux-gnu/varnish/vmods/libvmod_wurfl.so: cannot open shared object file: No such file or directory
('input' Line 1 Pos 8)
import wurfl;
-------#####-

Running VCC-compiler failed, exit 1

VCL compilation failed



wurfl files on system:
================
root@lb2:~# find /* -iname wurfl
/usr/include/wurfl
/usr/share/wurfl
/var/cache/salt/minion/files/prod/wurfl

Please assist.

Re: WURFL Varnish missing libraries

Posted: Mon Jun 30, 2014 2:14 am
by support-all
Hi Kirsten,

can you please post the output of the following command:

# dpkg --get-selections | grep wurfl

Thank you,
Andrea

Re: WURFL Varnish missing libraries

Posted: Mon Jun 30, 2014 3:47 am
by kirsten_sekhaolelo
root@lb1:~# dpkg --get-selections | grep wurfl
libwurfl install

root@lb1:~# dpkg -l | grep wurfl
ii libwurfl 1.5.1.2 amd64 ScientiaMobile WURFL InFuze Shared Library

Re: WURFL Varnish missing libraries

Posted: Mon Jun 30, 2014 4:01 am
by support-all
This means that you have installed libwurfl but haven't installed the wurfl varnish module yet.

You should already have two deb files, one for libwurfl and one for the varnish module, is that correct?

Thank you,
Andrea

Re: WURFL Varnish missing libraries

Posted: Mon Jun 30, 2014 4:10 am
by kirsten_sekhaolelo
Yes. This files, right?
infuze_1.5.1.2_libwurfl_ubuntu_14.04_x86_64.zip
infuze_1.5.1.2_varnish_ubuntu_14.04_x86_64.zip

Re: WURFL Varnish missing libraries

Posted: Mon Jun 30, 2014 4:19 am
by support-all
Yes, exactly.

just extract the infuze_1.5.1.2_varnish_ubuntu_14.04_x86_64.zip with:

# unzip infuze_1.5.1.2_varnish_ubuntu_14.04_x86_64.zip

and you should get a .deb file, which can be installed by running:

# dpkg -i varnish-mod_wurfl-1.5.1.2.Ubuntu_14.04.x86_64.deb

Andrea

Re: WURFL Varnish missing libraries

Posted: Mon Jun 30, 2014 9:33 am
by kirsten_sekhaolelo
Hi Andrea

That last bit did the trick.

Everything is working as expected.

Thank you so much for your assistance.

Best regards,

Kirsten