<div dir="ltr"><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Is there one way to configure varnish to read the vmods libraries in a different directory?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am asking this because of the permissions I have compiled and installed the varnish in a different path using other user (non-root).</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Everything works when I don't use any import in my VCL file.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">but when I try to use for example  "import std;", I receive an error because the process is trying to read a system directory.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>[docker@localhost varnish]$ /home/docker/varnish/sbin/<wbr>varnishd -a :29800 -f /home/docker/varnish/etc/<wbr>default.vcl -T <a href="http://127.0.0.1:6082/" target="_blank">127.0.0.1:6082</a> -p thread_pool_min=50 -p thread_pool_max=1000 -S /home/docker/varnish/etc/<wbr>secret -s malloc,256M -n /home/docker/varnish/tmp -P /home/docker/varnish/run/<wbr>varnish.pid</div><div>Error:</div><div>Message from VCC-compiler:</div><div>Could not load VMOD std</div><div><b>        File name: libvmod_std.so</b></div><div><b>        dlerror: /usr/local/lib/varnish/vmods/<wbr>libvmod_std.so: cannot open shared object file: No such file or directory</b></div><div>('/home/docker/varnish/etc/<wbr>default.vcl' Line 3 Pos 8)</div><div>import std;</div><div>-------###-</div><div><br></div><div>Running VCC-compiler failed, exited with 2</div><div>VCL compilation failed</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am not sure, but I believe that could be possible to configure other folder because when the installation has finished, I saw that the libraries is under a folder "lib"<br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>[docker@localhost varnish]$ ls -ltr /home/docker/varnish</div><div>total 40</div><div>drwxrwxr-x 3 docker docker 4096 Jun  9 11:24 include</div><div>drwxrwxr-x 2 docker docker 4096 Jun  9 11:24 bin</div><div>drwxr-xr-x 3 docker docker 4096 Jun  9 11:24 var</div><div>drwxrwxr-x 6 docker docker 4096 Jun  9 11:24 share</div><div>drwxrwxr-x 4 docker docker 4096 Jun  9 11:24 lib</div><div>drwxrwxr-x 2 docker docker 4096 Jun  9 11:56 sysconfig</div><div>drwxrwxr-x 2 docker docker 4096 Jun  9 12:29 etc</div><div>drwxrwxr-x 2 docker docker 4096 Jun  9 12:29 run</div><div>drwxrwxr-x 2 docker docker 4096 Jun  9 12:33 sbin</div><div>drwxrwxr-x 4 docker docker 4096 Jun  9 12:37 tmp</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>[docker@localhost lib]$ find /home/docker/varnish/lib/</div><div>/home/docker/varnish/lib/</div><div>/home/docker/varnish/lib/<wbr>pkgconfig</div><div>/home/docker/varnish/lib/<wbr>pkgconfig/varnishapi.pc</div><div>/home/docker/varnish/lib/<wbr>libvarnishapi.so</div><div>/home/docker/varnish/lib/<a href="http://libvarnishapi.la/" target="_blank">libva<wbr>rnishapi.la</a></div><div>/home/docker/varnish/lib/<wbr>libvarnishapi.so.1.0.6</div><div>/home/docker/varnish/lib/<wbr>varnish</div><div>/home/docker/varnish/lib/<wbr>varnish/vmods</div><div>/home/docker/varnish/lib/<wbr>varnish/vmods/libvmod_<wbr>directors.so</div><div><b>/home/docker/varnish/lib/<wbr>varnish/vmods/libvmod_std.so</b></div><div>/home/docker/varnish/lib/<wbr>varnish/vmods/<a href="http://libvmod_directors.la/" target="_blank">libvmod_<wbr>directors.la</a></div><div>/home/docker/varnish/lib/<wbr>varnish/vmods/<a href="http://libvmod_std.la/" target="_blank">libvmod_std.la</a></div><div>/home/docker/varnish/lib/<wbr>libvarnishapi.so.1</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I appreciate if someone could help me. </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thank you very much.</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><b>Remo M. Furlanetto</b><br>
<b>E-mail:</b> <b style="color:rgb(51,102,255)"><a href="mailto:remofurlanetto@gmail.com" target="_blank">remofurlanetto@gmail.com</a></b><br>
<b>Telefone:</b> (11) 99910-0565</div></div>
</div>