On 09/08/2014, at 12:27 AM, Grumblepants <[email protected]> wrote:

> 
> 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?

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 

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to