期望情况是下载好mod_python后执行编译并安装就能够搞定。
1 2 3 |
$ ./configure –with-apxs=/usr/sbin/apxs $ make $ sudo make install |
但是事实却不尽人意,在Mac OS X Lion可能会遇到下面这个错误:
1 2 |
connobject.c:142: error: request for member ‘next’ in something not a structure or union apxs:Error: Command failed with rc=65536 |
说明connobject.c这个文件中142行有错误,我们找到并打开它
1 |
vim src/connobject.c |
将142行处的
1 |
!(b == APR_BRIGADE_SENTINEL(b) || |
改为
1 |
!(b == APR_BRIGADE_SENTINEL(bb) || |
-EOF-