I've installed vapor 2.3.0 using binary package on Ubuntu 14.04 LTS. It seems the script vapor-setup.sh does not work at all. None of the system variables such as LD_LIBRARY_PATH are successfully set after executing the script. I can verify by issue command $echo $LD_LIBRARY_PATH. I use bash.
yulq, are you 'sourcing' the script or just running it? It sounds like you may be running it by typing './vapor-setup.sh'. The file must be 'sourced' by typing '. ./vapor-setup.sh' with the preceding period before the script. More info is included in this link:
https://www.vapor.ucar.edu/docs/vapor-installation/vapor-unix-binary-ins...
I ran the script. Thank you for your correction. Now it works.