(概要)如何使用“ipkg”安装apache开发包

2024-09-30 10:42:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我在Synology上运行Apache(使用MySQL、PHP)。它已经正常工作了2年,现在我想向服务器添加flask文件

ipkg update
ipkg install python3
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py
python3 -m pip install flask
python3 -m pip install pymysql
python3 -m pip install mod_wsgi

这些是我执行的命令,在安装mod_wsgi时出错

错误:

Command errored out with exit status 1: python setup.py                                                                                                  egg_info Check the logs for full command output.
  Downloading mod_wsgi-4.5.17.tar.gz (1.9 MB)
     |████████████████████████████████| 1.9 MB 8.3 MB/s
    ERROR: Command errored out with exit status 1:
     command: /opt/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys                                                                                                 .argv[0] = '"'"'/tmp/pip-install-cwc7qweq/mod-wsgi_71a66a132bc24dcd848d791aee926                                                                                                 2de/setup.py'"'"'; __file__='"'"'/tmp/pip-install-cwc7qweq/mod-wsgi_71a66a132bc2                                                                                                 4dcd848d791aee9262de/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(_                                                                                                 _file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools impor                                                                                                 t setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.c                                                                                                 lose();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/p                                                                                                 ip-pip-egg-info-4rdjf86x
         cwd: /tmp/pip-install-cwc7qweq/mod-wsgi_71a66a132bc24dcd848d791aee9262d                                                                                                 e/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-cwc7qweq/mod-wsgi_71a66a132bc24dcd848d791aee9262de/                                                                                                 setup.py", line 164, in <module>
        'missing Apache httpd server packages.' % APXS)
    RuntimeError: The 'apxs' command appears not to be installed or is not execu                                                                                                 table. Please check the list of prerequisites in the documentation for this pack                                                                                                 age and install any missing Apache httpd server packages.

我想没有ApacheHttpD服务器包,它可以与sudo apt-get install apache2-devsudo yum install httpd一起安装。但这些是针对Ubuntu和CentOS的,而不是针对Synology(ipkg软件包管理器)

有没有办法使用ipkg安装Apache开发包? 我非常感谢您的帮助/回复


Tags: installpippyiomodwsgigetegg

热门问题