When attempting to run a program I just compiled successfully, I get the following error:
./src/sensors/laser_scan_producer: error while loading share
I found a working solution for both /usr/local/lib and /usr/local/lib64 directories in this commit.
First run this command as root to add those directories.
tee /etc/ld.so.conf.d/local.conf <
Next run as root:
ldconfig