Unclear Error Link to heading

Compiling Libraries Link to heading

  • If library is not available in your package manager, need to source from internet, download and compile.
  • After running make, the executable .so file usually goes into the lib folder from the path where it is compiled.

Run Executable with library: Link to heading

error while loading shared libraries: libGLEW.so.1.10: cannot open shared object file: No such file or directory

Solution Link to heading

LD_PRELOAD=/home/user/Downloads/glew-1.10.0/lib/libGLEW.so.1.10 ./program-to-run

OR

  1. copy compiled library to /usr/local/lib
  2. sudo cp glew-1.10.0/lib/libGLEW.so.1.10 /usr/local/lib
  3. Run sudo ldconfig after

Search for installed library: Link to heading

ldconfig -p | grep libpthread.so.0