Error 'could not read symbols: Bad value' when installing Python
<p>i need to install <strong>mod_wsgi</strong> for <strong>Django</strong>, but when i do <code>pip install mod_wsgi</code> i have an error:</p>

<pre><code>    /usr/local/lib/libpython2.7.a: could not read symbols: Bad value
    collect2: ld returned 1 exit status
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/local/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-LHF3wD/mod-wsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-lWmQhZ-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-LHF3wD/mod-wsgi/
</code></pre>

<p>So i found information about this problem and i tried to reconfigure python like this:</p>

<pre><code>make clean
./configure --enable-shared
make
</code></pre>

<p>But now i have the same error after <code>make</code> command:</p>

<pre><code>/usr/local/lib/libpython2.7.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
</code></pre>

<p>OS: CentOS 6,
python version: 2.7</p>

<p>Also i already have mod_wsgi for Python6.6 (by default. I installed "web server" version of centos)</p>

<p>What is wrong? Thanks.</p>