Linux에 C 컴파일러를 설치하는 방법은 무엇입니까?

Linux에 C 컴파일러를 설치하는 방법은 무엇입니까?

Linux에 컴파일러를 설치해야 합니다. 먼저 일부 시스템 정보:

-bash-3.2$ uname -a
Linux axentraserver.xxxxxxxx.xxxxxxxxxxxxx.com 2.6.31.8 #97 Thu Sep 12 10:38:00 EDT 2013 armv5tel armv5tel armv5tel GNU/Linux

이 Linux 버전은 NAS에서 호스팅됩니다.

문제는 패키지 관리자가 설치되어 있지 않다는 것입니다.

bash-3.2# ./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/administrator/Test/m4-1.4.17':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

다음 패키지에 필요한 GNU m4를 설치하려고 합니다. 아무것도 yum또는 apt-get아무것도.

그렇다면 C 컴파일러를 수동으로 설치하는 방법은 무엇입니까?

답변1

Medion 라우터인가요, 아니면 NAS인가요?

내 생각에 가장 좋은 방법은(아무도 직접 압축 풀기+ 사용을 위해 C/C++ 컴파일러를 패키지하지 않은 경우) 전체 Linux 시스템에서 프로그램을 크로스 컴파일한 다음 결과 바이너리를 시스템에 복사하는 것입니다.

어쩌면 crossgc와 crosstool-ng를 사용하여 프로그램을 컴파일할 수도 있습니다.

관련 정보