title: libpng12.so.0: cannot open shared object file: wrong ELF class: ELFCLASS64
body: <p>I'm trying to install Quartus 13.0 on a docker container but I have a trouble with libpng12 lib. </p>
  
  <pre><code>builder@580847ded665:~$ ls -ld $(locate -r libpng.*\.so.*)
  lrwxrwxrwx. 1 root root     18 Jan  6  2016 /lib/x86_64-linux-gnu/libpng12.so.0 -&gt; libpng12.so.0.54.0
  -rw-r--r--. 1 root root 149904 Jan  6  2016 /lib/x86_64-linux-gnu/libpng12.so.0.54.0
  lrwxrwxrwx. 1 root root     35 Jan  6  2016 /usr/lib/x86_64-linux-gnu/libpng12.so.0 -&gt; /lib/x86_64-linux-gnu/libpng12.so.0
  builder@580847ded665:~$ xvfb-run -a /home/builder/altera/13.0/quartus/bin/tb2_install --enable
  tb2_install: error while loading shared libraries: libpng12.so.0: cannot open shared object file: wrong ELF class: ELFCLASS64
  </code></pre>
  
  <p>The problem is I have a 32 bit application trying to use a 64 bit library and it is not understanding it. Could anyone please help me to figure out how to fix this issue?</p>