WURFL Varnish missing libraries

Questions about our enterprise "in the network" WURFL components
kirsten_sekhaolelo
Posts: 18
Joined: Thu May 29, 2014 10:38 am

WURFL Varnish missing libraries

Postby kirsten_sekhaolelo » Sun Jun 29, 2014 3:00 pm

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.

support-all
Posts: 32
Joined: Mon Oct 08, 2012 2:47 am

Re: WURFL Varnish missing libraries

Postby support-all » Mon Jun 30, 2014 2:14 am

Hi Kirsten,

can you please post the output of the following command:

# dpkg --get-selections | grep wurfl

Thank you,
Andrea

kirsten_sekhaolelo
Posts: 18
Joined: Thu May 29, 2014 10:38 am

Re: WURFL Varnish missing libraries

Postby kirsten_sekhaolelo » Mon Jun 30, 2014 3:47 am

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

support-all
Posts: 32
Joined: Mon Oct 08, 2012 2:47 am

Re: WURFL Varnish missing libraries

Postby support-all » Mon Jun 30, 2014 4:01 am

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

kirsten_sekhaolelo
Posts: 18
Joined: Thu May 29, 2014 10:38 am

Re: WURFL Varnish missing libraries

Postby kirsten_sekhaolelo » Mon Jun 30, 2014 4:10 am

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

support-all
Posts: 32
Joined: Mon Oct 08, 2012 2:47 am

Re: WURFL Varnish missing libraries

Postby support-all » Mon Jun 30, 2014 4:19 am

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

kirsten_sekhaolelo
Posts: 18
Joined: Thu May 29, 2014 10:38 am

Re: WURFL Varnish missing libraries

Postby kirsten_sekhaolelo » Mon Jun 30, 2014 9:33 am

Hi Andrea

That last bit did the trick.

Everything is working as expected.

Thank you so much for your assistance.

Best regards,

Kirsten


Who is online

Users browsing this forum: No registered users and 2 guests