title: Python invoking 32 bit X11 lib files instead of 64 bit while using Selenium Web driver
body: <p>I have installed python 2.7 on CentOS 5.5 x86_64 machine.</p>
  
  <pre><code>$ file /opt/python2.7.1/bin/python
  
  /opt/python2.7.1/bin/python: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
  </code></pre>
  
  <p>Then I tied to run a basic login script using selenium web driver &amp; it fails with the following error. </p>
  
  <pre><code>selenium.common.exceptions.WebDriverException: Message: 'The browser appears to have exited before we could connect. The output was: Failed to dlopen /usr/lib/libX11.so.6\ndlerror says: /usr/lib/libX11.so.6: wrong ELF class: ELFCLASS32\n'
  </code></pre>
  
  <p>Why it's using 32 bit X11 library instead of using 64 bit X11 library? How can I make python use 64 bit libraries?</p>