1 环境
环境: Centos6.5 python2.6.6 mod_python 3.5.0 ohs
2 报错
执行
#make && make install
报错:
fatal: Not
a git repository (
or any of the parent
directories): .git
安装后测试打开网页报错500内部服务器错误,后查看ohs日志如下
[mod_python.c] [host_id: ohs.xxxxxxx.com] [host_addr: 127.0.0.1] [tid: 140372429690624] [user: vagrant] [ecid: 005EThzoHfnFw000jzwkno0002zp000002] [rid: 0] [VirtualHost: main] make_obcallback:
could not import mod_python.apache.\
n
3 解决办法
#cd mod_python-3.5.0
#vi src/Makefile
修改@MP_GIT_SHA=$$(git describe --always) 为 @MP_GIT_SHA=$$()
#vi dist/version.sh
修改GIT=git describe --always 为 GIT=“
转载请注明原文地址: https://ju.6miu.com/read-1300702.html