実現したいこと・ 前提
Webアプリケーションのサーバーを構築しています。
mod-wsgi-httpd をインストールしたいです。
Djangoアプリのサーバーを構築していて、
サーバーを立てた後リモートデスクトップにより以下手順での作業を行っていましたが、
$ pip install mod-wsgi-httpd
でエラーがでていて解消方法が分かりません。
1.Apacheをインストール(問題なく起動できる)
2.Python3.8をインストール
3.Django他アプリケーションで使用するモジュールをインストール
$ pip install -r requirements.txt
4.Microsoft Visual C++ 14.0をインストール
5.wsgiをインストール
$ pip install mod_wsgi
$ pip install mod-wsgi-httpd
発生している問題・エラーメッセージ
C:\SeverApp\sampleaws>pip install mod-wsgi-httpd Collecting mod-wsgi-httpd Using cached mod_wsgi-httpd-2.4.54.1.tar.gz (13.5 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [19 lines of output] 'rm' is not recognized as an internal or external command, operable program or batch file. Traceback (most recent call last): File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module> main() File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) File "C:\Users\Administrator\AppData\Local\Temp\2\pip-build-env-62et4x22\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) File "C:\Users\Administrator\AppData\Local\Temp\2\pip-build-env-62et4x22\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires self.run_setup() File "C:\Users\Administrator\AppData\Local\Temp\2\pip-build-env-62et4x22\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup super(_BuildMetaLegacyBackend, File "C:\Users\Administrator\AppData\Local\Temp\2\pip-build-env-62et4x22\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup exec(code, locals()) File "<string>", line 75, in <module> RuntimeError: Failed to build APR. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.
試したこと
Apacheを再起動しましたが変わりませんでした。
補足情報(FW/ツールのバージョンなど)
サーバーはEC2インスタンスです。
OS:Windows Server 2022
インスタンスタイプ:t2.micro
ボリュームサイズ:30GB

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。