当前位置:   article > 正文

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

python not a git repository

1 环境

环境:
Centos6.5
python2.6.6
mod_python 3.5.0
ohs

2 报错

执行

#make && make install
  • 1

报错:

fatal: Not a git repository (or any of the parent directories): .git
  • 1

安装后测试打开网页报错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
  • 1
  • 2

 3 解决办法

#cd mod_python-3.5.0
#vi src/Makefile
  • 1
  • 2

修改@MP_GIT_SHA=$$(git describe --always) 为 @MP_GIT_SHA=$$()

#vi dist/version.sh
  • 1

修改GIT=git describe --always 为 GIT=“

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号