title: ldd can't find library in LD_LIBRARY_PATH
body: <p>I'm trying to get a system up and running, and am having problems with the OpenMotif shared libraries.  I have their directory in LD_LIBRARY_PATH, but it still can't find them.</p>
  
  <p>Here's an example:</p>
  
  <pre><code>[root@intrepid netcool]# ldd /opt/netcool/omnibus/platform/linux2x86/bin/nco_* |grep 'not found'
      libXm.so.3 =&gt; not found
      libXpm.so.4 =&gt; not found
      libXm.so.3 =&gt; not found
      libXm.so.3 =&gt; not found
      libXpm.so.4 =&gt; not found
      libXm.so.3 =&gt; not found
      libXm.so.3 =&gt; not found
      libXm.so.3 =&gt; not found
      libXm.so.3 =&gt; not found
  [root@intrepid netcool]# find /usr/ -name libXm.so.3 
  /usr/lib64/libXm.so.3
  [root@intrepid netcool]# find /usr/ -name libXpm.so.4
  /usr/lib64/libXpm.so.4
  [root@intrepid netcool]# echo $LD_LIBRARY_PATH
  /opt/netcool/omnibus//platform/linux2x86/lib/:/opt/netcool//platform/linux2x86/lib/:/usr/lib/:/usr/lib64/
  </code></pre>
  
  <p>I'm probably doing something stupid, but I can't think of anything else to try.</p>
  
  <p>EDIT: To answer a couple of the questions asked below:</p>
  
  <pre><code>[root@intrepid netcool]# export LD_LIBRARY_PATH
  [root@intrepid netcool]# ldd /opt/netcool/omnibus/platform/linux2x86/bin/nco_* |grep 'not found'
      libXm.so.3 =&gt; not found
      libXpm.so.4 =&gt; not found
      libXm.so.3 =&gt; not found
      libXm.so.3 =&gt; not found
      libXpm.so.4 =&gt; not found
      libXm.so.3 =&gt; not found
      libXm.so.3 =&gt; not found
      libXm.so.3 =&gt; not found
      libXm.so.3 =&gt; not found
  [root@intrepid netcool]# ldconfig
  [root@intrepid netcool]# ldd /opt/netcool/omnibus/platform/linux2x86/bin/nco_* |grep 'not found'
      libXm.so.3 =&gt; not found
      libXpm.so.4 =&gt; not found
      libXm.so.3 =&gt; not found
      libXm.so.3 =&gt; not found
      libXpm.so.4 =&gt; not found
      libXm.so.3 =&gt; not found
      libXm.so.3 =&gt; not found
      libXm.so.3 =&gt; not found
      libXm.so.3 =&gt; not found
  </code></pre>
  
  <p>Ok, just tried to run one of the executables:</p>
  
  <pre><code># ./bin/nco_xigen 
  /opt/netcool//omnibus/platform/linux2x86/bin/nco_xigen: error while loading shared libraries: libXm.so.3: wrong ELF class: ELFCLASS64
  </code></pre>
  
  <p>Is this a 32 bit/64 bit thing?  </p>