2012-04-24 106 views
1

我想在一个干净的CentOS 6的安装运行这个web2py install script,并且正在以下组的错误:了解外壳安装脚本错误

checkmodule: loading policy configuration from httpd.te 
httpd.te:1:ERROR 'Building a policy module, but no module specification found. 
' at token 'EOF' on line 1: 

checkmodule: error(s) encountered while parsing configuration 
semodule_package: Could not open file No such file or directory: httpd.mod 
semodule: Failed on httpd.pp! 

- Configure Apache to use mod_wsgi 

Stopping httpd:           [FAILED] 
Starting httpd: Syntax error on line 1 of /etc/httpd/conf.d/default.conf: 
Invalid command 'EOF', perhaps misspelled or defined by a module not included in the server configuration 
                  [FAILED] 

- Complete! 

./setup-web2py-fedora.sh: line 407: EOF: command not found 
./setup-web2py-fedora.sh: line 408: EOF: command not found 
./setup-web2py-fedora.sh: line 409: EOF: command not found 

为什么脚本有问题,我不明白处理'EOF',因为它只是应该是heredoc的分隔标识符。

回答

1

在第182行有一个错误的EOF(正确的一个,匹配<< EOF,出现在第193行)。这最终在httpd.te文件内,当checkmodule尝试处理它时会导致语法错误。

+0

@ larsks-感谢我看到了现在 - 是线228,300和407-9的错误呢? – Yarin 2012-04-24 11:43:10

+0

他们确实看起来像。 – larsks 2012-04-24 13:03:42