簡體   English   中英

了解Shell設置腳本錯誤

[英]Understanding shell setup script 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

我不明白為什么腳本在處理'EOF'時會遇到問題,因為它只是作為Heredoc的定界標識符。

第182行出現錯誤的EOF (與<< EOF匹配的正確行出現在第193行)。 這最終在httpd.te文件中,當checkmodule嘗試處理它時,這會導致語法錯誤。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM