error while loading shared libraries: libalpm.so.12: cannot open shared object file: No such file or directory code example

Example 1: libespeak.so.1: cannot open shared object file: No such file or directory

sudo apt-get update && sudo apt-get install espeak

Example 2: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory"

sudo apt-get install libaio1 libaio-dev

Example 3: libcublas.so.9.0: cannot open shared object file: No such file or directory

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.0/lib64/