title: Varnish not caching and error: "LIBVARNISHAPI_1.2/3 not found" on RaspberryPi
body: <p>Varnish serves my web page fine from a rpi, but it never caches. The Age header returned is always 0. I've made sure that there are no cookies being returned by the application. I've run with the default vcl config, but also tried forcing caching by specifying this very simple vcl_recv:</p>
  
  <p><code>sub vcl_recv {
  return (hash);
  }</code></p>
  
  <p>I am very new to Varnish, and may be missing something obvious. I have followed <a href="http://www.weedpi.com/how-to/install-varnish-in-raspberry-pi/" rel="nofollow">this</a> unofficial installation guide but it looks very basic. </p>
  
  <p>Here are the headers returned:</p>
  
  <p><code>
  Cache-Control:           public, max-age=10000</p>
  
  <p>Accept-Ranges:          bytes</p>
  
  <p>ETag:  "555-1388685308000"</p>
  
  <p>Last-Modified:           Thu, 02 Jan 2014 17:55:08 GMT</p>
  
  <p>Content-Type:           text/html; charset=UTF-8</p>
  
  <p>Content-Length:        555</p>
  
  <p>Date:   Sun, 05 Jan 2014 15:43:46 GMT</p>
  
  <p>X-Varnish:      32783</p>
  
  <p>Age:     0</p>
  
  <p>Via:      1.1 varnish</p>
  
  <p>Connection:    keep-alive
  </code></p>
  
  <p>and sent:</p>
  
  <p><code>
  Host:   "my rpi host"</p>
  
  <p>Accept:            <em>/</em></p>
  
  <p>Accept-Encoding:      gzip, deflate
  </code></p>
  
  <p>I wanted to see some logging, but attempts to run anything but varnishd results in following errors:</p>
  
  <p><code>$ varnishlog
  varnishlog: /usr/lib/arm-linux-gnueabihf/libvarnishapi.so.1: version <code>LIBVARNISHAPI_1.2' not found (required by varnishlog)
  varnishlog: /usr/lib/arm-linux-gnueabihf/libvarnishapi.so.1: version</code>LIBVARNISHAPI_1.3' not found (required by varnishlog)</code></p>
  
  <p>So I've tried running $ ldconfig -n /usr/local/lib/ but I get the same errors.</p>
  
  <p>I've run out of ideas, what could be the issue here? I think it's very strange that the application is served, but anything else blows up.</p>