in reply to Re^2: How to set LD_LIBRARY_PATHin thread How to set LD_LIBRARY_PATH
but it likely will work if set before you load the modules.
Won't, it has to be set before you run perl