charsyam / the_red_infra

the red infra
Apache License 2.0
39 stars 25 forks source link

ubuntu 20.04에서 install_python.sh 실행시 에러 발생 문의드립니다. #10

Open odiohead opened 1 year ago

odiohead commented 1 year ago

패키지 설치 후 해결되었습니다.


아래와 같이 에러가 발생하는데 원인 알 수 있을까요?

ubuntu@ip-10-0-0-19:~/the_red_infra$ ./install_python.sh 1-1) INSTALLING PYTHON 3.8.6 Downloading Python-3.8.6.tar.xz... -> https://www.python.org/ftp/python/3.8.6/Python-3.8.6.tar.xz Installing Python-3.8.6... patching file Misc/NEWS.d/next/Build/2021-10-11-16-27-38.bpo-45405.iSfdW5.rst patching file configure patching file configure.ac

BUILD FAILED (Ubuntu 20.04 using python-build 2.3.12-16-gc8daaa39)

Inspect or clean up the working tree at /tmp/python-build.20230213134750.3003 Results logged to /tmp/python-build.20230213134750.3003.log

Last 10 log lines: checking for python3.8... python3.8 checking for --enable-universalsdk... no checking for --with-universal-archs... no checking MACHDEP... "linux" checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in /tmp/python-build.20230213134750.3003/Python-3.8.6': configure: error: no acceptable C compiler found in $PATH Seeconfig.log' for more details pyenv: shell integration not enabled. Run pyenv init' for instructions. 1-2) INSTALLING VIRTUALENV the-red-dev pyenv-virtualenv:3.8.6' is not installed in pyenv. 2) use the-red-dev pyenv: version `the-red-dev' not installed ./install_python.sh: line 32: pip: command not found ubuntu@ip-10-0-0-19:~/the_red_infra$

clark-lt commented 1 year ago

@odiohead 네, 에러메시지에 c 컴파일러가 없다라고 나와있네요. 잘 해결하셨다니 다행입니다.

configure: error: in /tmp/python-build.20230213134750.3003/Python-3.8.6': configure: error: no acceptable C compiler found in $PATH See config.log' for more details