How do i recompile python 3.4.7 when using pyenv to handle the weird mod_wsgi 64 bit issue?

1,155 views
Skip to first unread message

Grumblepants

unread,
Aug 8, 2014, 10:27:27 AM8/8/14
to mod...@googlegroups.com

If i have pyenv and python and i am getting the mod_wsgi issue here

https://code.google.com/p/modwsgi/wiki/InstallationIssues#Mixing_32_Bit_And_64_Bit_Packages

How exactly do i recompile python?

I don't really know what a pyenv is, just that whatever tutorial i followed said it was utterly essential to use... so now i am using it, how do i recompile with the flag?

Graham Dumpleton

unread,
Aug 8, 2014, 11:37:09 PM8/8/14
to mod...@googlegroups.com
If this is the same as:

http://stackoverflow.com/questions/25205498/python-pyenv-and-recompiling-to-handle-a-64bit-issue

Then instead of:

PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs4 --enable-shared"
pyenv uninstall 3.4.1
pyenv install 3.4.1

try:

PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs4 --enable-shared"
export PYTHON_CONFIGURE_OPTS
pyenv uninstall 3.4.1
pyenv install 3.4.1

That is, you would normally need to export the environment variable.

If you are getting something like:

WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
WARNING : The Python readline extension was not compiled. Missing the GNU readline lib?
Installed Python-3.4.1 to /root/.pyenv/versions/3.4.1

You are missing dev packages of various systems libraries and so header files needed to compile those modules are missing and so they cannot be built.

Graham
Reply all
Reply to author
Forward
0 new messages