This isn't actually a Varnish problem, it's most likely just your system not having an up-to-date linker to point to your correct modules.
You'll see this when trying to run varnishhist or varnishtop:
# varnishhist varnishhist: error while loading shared libraries: libvarnishapi.so.1: cannot open shared object file: No such file or directory
It's usually as simple as running ldconfig:
# ldconfig
If you have Varnish installed in some obscure location, you may have to add that location manually first.
# ldconfig -n /usr/local/lib/
If that still doesn't work, make sure you installed it correctly with the correct packages as dependency (Varnish won't tell you these have been missed during configure & make).
# apt-get install libpcre3-dev libncurses3-dev automake autoconf libtool
And don't forget to run 'make clean' before you try to reconfigure.
Thanks for your tips.
I also have an error on the libvarnishapi lib
ns15:/usr/local/lib# varnishtop
varnishtop: /usr/local/lib/libvarnishapi.so.1: no version information available (required by varnishtop)
varnishtop: relocation error: varnishtop: symbol VSM_New, version LIBVARNISHAPI_1.0 not defined in file libvarnishapi.so.1 with link time reference
I have the same for all varnish* command except varnishd.
Thank you
good !!!
It work fine after exec `ldconfig -n /usr/local/lib/` , thanks very much !