Strange Python compilation results with “--enable-shared” flag

前端 未结 1 498
梦如初夏
梦如初夏 2021-01-12 06:51

I am using Debian (which comes with Python-2.7.3), trying to compile Python-2.7.6 from source for use with mod_wsgi alongside Apache.

Apparently you must use --enabl

相关标签:
1条回答
  • 2021-01-12 07:01

    When you do the make of Python, run it as:

    LD_RUN_PATH=/usr/local/lib make
    

    Setting the environment variable LD_RUN_PATH forces 'python' executable generated to look in /usr/local/lib before /usr/lib for Python shared library.

    This is mentioned in the mod_wsgi documentation.

    • http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Python_Shared_Library

    Before doing this again, make sure you do a 'make distclean' and rerun configure to make sure you haven't got old build products around.

    0 讨论(0)
提交回复
热议问题