libGL.so.1: cannot open shared object

This paste is a reply to "uzbl-core: error while loading shared librar from Wet Capybara - view diff
By: Flying Earthworm | 1 Year | Syntax: Plain Text | Views: 2'688
URL http://paste.itunix.eu/view/b9fca588

  1. "uzbl-core: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory"
  2.  
  3.  
  4. The problem that we solved by commenting was that you were using 32-bits libraries in a 64-bits system.
  5.  
  6. wrong ELF class: ELFCLASS32
  7. The ending of the class should have been 64, hence producing this error. The way to go is purging the 32-bits libraries then reinstalling the 64-bits.
  8.  
  9. sudo apt-get purge libgl1-mesa-glx:i386
  10. sudo apt-get --reinstall install libgl1-mesa-glx
  11. And refreshing our GNU linker:
  12.  
  13. sudo ldconfig
  14. Once everything is ok, ldconfig -p | grep libGL.so.1 should show:
  15.  
  16. libGL.so.1 (libc6) => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
  17. libGL.so.1 (libc6) => /usr/local/lib/libGL.so.1
  18. If you ever need the 32-bits libraries for running 32-bits applications, you could do so installing the libgl1-mesa-glx:i386 package. But in this case remember to setting your LD_LIBRARY_PATH temporally to where the 32bits libraries are, so it won't mess up your other programs.
  19.  
  20.  export LD_LIBRARY_PATH="/path/to/library/"
  21.  ./run_some_32_bit_program

Reply to " libGL.so.1: cannot open shared object "

Here you can reply to the paste above