您的位置:首页 > 理论基础 > 计算机网络

Oracle Http Server安装mod_python,运行报错fatal: Not a git repository (or any of the parent directories)

2016-08-15 09:57 633 查看

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=“
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  server python oracle