表題の通りです。
python3.6をソースからインストールしています。
/home/ubuntu/にvenv環境を作りました。
そのあと、pipでmod_wsgiをインストールするとエラーになります。原因は、どのような事でしょうか。
ご教授をお願いします。正直環境問題なので、どのようなことが原因なのかよくわからないので、よろしくお願いします。
エラーの内容
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libpython3.6m.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status error: command 'gcc' failed with exit status 1 ---------------------------------------- Command "/home/ubuntu/env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-4yfclv37/mod-wsgi/setup.py'; f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n'); f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ee3jwdim-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/env/include/site/python3.6/mod-wsgi" failed with error code 1 in /tmp/pip-build-4yfclv37/mod-wsgi/
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。