varnish / libvmod-digest

Digest and HMAC vmod
Other
50 stars 27 forks source link

dlopen() failed: libmhash.so.2: cannot open shared object file: No such file or directory #47

Closed chikenare closed 5 hours ago

chikenare commented 5 hours ago

It doesn't work for me with dicocker, I already tried with the images of varnish fresh, latest and old the same problem Captura de pantalla 2024-11-16 a la(s) 9 20 18 p m Captura de pantalla 2024-11-16 a la(s) 9 20 26 p m

chikenare commented 5 hours ago

I was removing lib hash-dev at the end and didn't realize Captura de pantalla 2024-11-16 a la(s) 9 42 38 p m

gquintard commented 3 hours ago

Glad you figured it!

A couple of notes: VMOD_DEPS is already defined, so you only really need to just append libmhash-dev to it, so that you can add/remove everything in one go.

Also, you probably realized that, but you need libmhash-dev to build, but you need libmhash to run. And the latter is a dependcu of the former. So you installed libmhash automatically with the dev package, and you removed it automatically with the dev packaged too. If you install it explicitly, it'll stick around when you remove VMOD_DEPS