building from source worked for me, here is what i put in my dockerfile if it helps anyone:
RUN sudo yum -y install bzip2 make
RUN curl https://github.com/jemalloc/jemalloc/releases/download/5.3.0/jemalloc-5.3.0.tar.bz2 -L -o jemalloc-5.3.0.tar.bz2
RUN tar -xf jemalloc-5.3.0.tar.bz2
RUN cd jemalloc-5.3.0 && ./configure && make && sudo make install
after all the usual swift toolchain dependencies.
make install
installs the libraries in /usr/local/lib
, which the plugin can’t find, so you also have to do:
$ sudo ldconfig /usr/local/lib