You could set the LD_LIBRARY_PATH environment variable for Home Assistant. How you do that depends on how you installed it.