I want to
import std; and do some
std.syslog. However, when I restart varnish, the VCC compiler fails:
$ sudo service varnish restart * Stopping HTTP accelerator varnishd [ OK ] * Starting HTTP accelerator varnishd [fail] SMA.s0: max size 2048 MB. Message from VCC-compiler: Could not load module std /usr/lib/varnish/vmods/libvmod_std.so /usr/lib/varnish/vmods/libvmod_std.so: cannot open shared object file: No such file or directory ('input' Line 15 Pos 8) import std; -------###- Running VCC-compiler failed, exit 1 VCL compilation failed
I'm running Ubuntu 11.10 and my varnish version:
$ varnishd -V varnishd (varnish-3.0.0 revision cbf1284) Copyright (c) 2006 Verdens Gang AS Copyright (c) 2006-2011 Varnish Software AS
std a built-in VMOD? How can I solve this? Thanks.
UPDATE: I managed to upgrade Varnish to 3.0.3 by following the instructions on their official website. However, I still don't understand why
std is not there in 3.0.0.