Best way to install libjemalloc.so.1

I wish to use a program which uses the library libjemalloc.so.1.

Using dnf search jemalloc, I’ve found the jemalloc and jemalloc-dev packages in the repositories and have installed them. However, these do not provide libjemalloc.so.1. Installing these only provides libjemalloc.so.2.

I believe my issue is similar to the one described in this issue error while loading shared libraries · Issue #1327 · jemalloc/jemalloc · GitHub, but that issue was on a debian distribution, where the fix was to install another package which does provide the library.

Using the command yum whatprovides libjemalloc.so.1 tells me there are no matches (while yum whatprovides libjemalloc.so.2 finds jemalloc.)

What would be the best way to install this library?

2 Likes

Try this way:

sudo dnf install jemalloc
sudo ln -f -s /usr/lib64/libjemalloc.so.{2,1}
1 Like