error while loading shared libraries

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
bradnag
Posts: 48
Joined: 1. Nov 2022, 23:38

error while loading shared libraries

Post by bradnag »

Hi Folks,

For any package from bind-9.18.37-x86_64-1_slack15.0 I get this error:

Code: Select all

host: error while loading shared libraries: libjemalloc.so.2: cannot open shared object file: No such file or directory
I reinstalled bind but did not solve the issue.

Thanks!
DidierSpaier
Posts: 539
Joined: 20. Jun 2016, 20:15

Re: error while loading shared libraries

Post by DidierSpaier »

I confirm the issue. The shared library libjemalloc.so.2 is shipped in the jemalloc package.

So just type:

Code: Select all

sudo slapt-get -i jemalloc
to solve it.

@gapan: however "depfinder bind-9.18.37-x86_64-1_slack15.0" does not list jemalloc as dependency, which is weird as "ldd /usr/sbin/named" lists libjemalloc.so.2 as dependency (as "not found" if jemalloc is not installed). Could it be an issue of depfinder?
User avatar
gapan
Salix Wizard
Posts: 6348
Joined: 6. Jun 2009, 17:40

Re: error while loading shared libraries

Post by gapan »

Well... the issue is not with depfinder. The issue is that while the bind-9.16.25 package that came with slackware 15.0 originally did not actually depend on jemalloc, the upgraded bind-9.18.37 package does. You can confirm this yourself if you downgrade to the 9.16.25 package and run ldd on /usr/bin/named-*, upgrade and then run it again.

I have just added jemalloc (and nghttp2) to the dependencies list of bind. Next time bind will be upgraded (or reinstalled) it should pull them as dependencies (as soon as mirrors sync). But for now, you'll have to fix it manually by installing jemalloc.
Image
Image
bradnag
Posts: 48
Joined: 1. Nov 2022, 23:38

Re: error while loading shared libraries

Post by bradnag »

thank you so much both. Issue solved.
Post Reply