error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory code example

Example 1: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

sudo apt-get update
sudo apt-get install libglib2.0-0

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

sudo apt-get install libasound2

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/

Tags:

Misc Example