mod_wsgi不会编译 – 找不到-lpython3.2
我正在尝试在我的web服务器上安装Python 3.2和mod_wsgi,但我没有太多的运气。 我下载了Python源文件并使用以下命令进行编译: ./configure –enable-shared –prefix=/opt/python-3-2 LDFLAGS="-Wl,-rpath /opt/python-3-2/lib" 我还修改了我的pathvariables以包含/opt/python-3-2/bin并从/opt/python-3-2/bin/python创build了一个到python3二进制文件的符号链接。 现在,如果我从命令行运行python ,我会得到正确的提示。 > python Python 3.2.2 (default, Jan 20 2012, 18:14:20) [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> 我正在使用以下设置来编译最新版本的mod_wsgi ./configure –with-apxs=/usr/sbin/apxs –with-python=/opt/python-3-2/bin/python3 这会产生以下错误 mod_wsgi.c:8937: warning: suggest parentheses around assignment used as truth value mod_wsgi.c:8939: warning: […]