[英]Understanding shell setup script errors
I'm trying to run this web2py install script on a clean CentOS 6 install, and am getting the following set of errors: 我正在尝试在干净的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
I don't understand why the script is having problems processing 'EOF' as it's just supposed to be the delimiting identifier of a heredoc . 我不明白为什么脚本在处理'EOF'时会遇到问题,因为它只是作为Heredoc的定界标识符。
There is an erroneous EOF
at line 182 (the correct one, matching the << EOF
, appears at line 193). 第182行出现错误的
EOF
(与<< EOF
匹配的正确行出现在第193行)。 This ends up inside the httpd.te
file, which causes a syntax error when checkmodule
tries to process it. 这最终在
httpd.te
文件中,当checkmodule
尝试处理它时,这会导致语法错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.