i need to install mod_wsgi for Django, but when i do pip install mod_wsgi
i have an error:
/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/
So i found information about this problem and i tried to reconfigure python like this:
make clean
./configure --enable-shared
make
But now i have the same error after make
command:
/usr/local/lib/libpython2.7.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
OS: CentOS 6, python version: 2.7
Also i already have mod_wsgi for Python6.6 (by default. I installed "web server" version of centos)
What is wrong? Thanks.