I set this variable correctly yet libclang.dynlib was not found. I sym linked the file to $HOME/lib and it worked fine.