1

我正在尝试在干净的 CentOS 6 安装上运行此web2py 安装脚本,并且收到以下一组错误:

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的定界标识符。

4

1 回答 1

1

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

于 2012-04-24T11:38:47.780 回答