Mac OS X10.9 mod_python3.5.0 安装注意事项

来源:互联网 发布:2016年美国非农数据 编辑:程序博客网 时间:2024/06/05 02:13

Mac OS X10.9自带有Apache环境, 我们需要安装Python3.3, Mod_python3.5.0(支持Python3.3)
Python3.3的安装见Mac OS X10.9安装的Python2.7升级Python3.3步骤详解
按说明文件README.md中的步骤
```shell
$ ./configure
$ make
$ sudo make install
$ make test
```

注意事项:

1. 在执行完./configure命令后, 需要个性src目录下的makefile文件

修改为
CPPFLAGS=-I/System/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m -DNDEBUG
2. 再修改
File "/System/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/mod_python/version.py", line 3
    version = "fatal: Not a git repository (or any of the parent directories): .git
                                                                                  ^
SyntaxError: EOL while scanning string literal

为 version = "fatal: Not a git repository (or any of the parent directories): .git 3.5.0-"
0 0