I found out my libraries were installed in a few different directories so I added a custom.config
file in
/etc/ld.so.conf.d/custom.config
and added the directories of all the locations
/usr/lib/x86_64-linux-gnu
/usr/local/lib
/usr/lib
then update:
sudo ldconfig