gpt4 book ai didi

linux - 了解 shell 安装脚本错误

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:08:18 26 4
gpt4 key购买 nike

我正在尝试运行这个 web2py install script在干净的 CentOS 6 安装上,我收到以下一组错误:

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

最佳答案

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

关于linux - 了解 shell 安装脚本错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10296929/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com