본문 바로가기
CS & Reversing

configure: error: no acceptable C compiler found in $PATH 해결

by m_.9m 2022. 9. 28.

 

🔥 에러문

root@ubuntu:/home/root1/Downloads/Python-2.6.5# ./configure –prefix=/opt/python2.65 –with-threads –enable-shared
configure: error: invalid variable name: –prefix
root@ubuntu:/home/root1/Downloads/Python-2.6.5# ./configure –prefix=/opt/python2.65 –with-threads –enable-shared
configure: error: invalid variable name: –prefix
root@ubuntu:/home/root1/Downloads/Python-2.6.5# 
root@ubuntu:/home/root1/Downloads/Python-2.6.5# 
root@ubuntu:/home/root1/Downloads/Python-2.6.5# 
root@ubuntu:/home/root1/Downloads/Python-2.6.5# ./configure –-prefix=/opt/python2.65 –with-threads –enable-sharedconfigure: error: invalid variable name: –-prefix
root@ubuntu:/home/root1/Downloads/Python-2.6.5# ./configure -prefix=/opt/python2.6.5 -with-threzds -enable-shared
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux5
checking EXTRAPLATDIR... 
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

 

🔥 해결 방안

컴파일러를 설치해준다.

apt -y install gcc 

이후 다시 원하는 명령어 실행 시 제대로 동작하는 것을 확인한다.

./configure –prefix=/opt/python2.65 –with-threads –enable-shared