>> Edit article
이름
제목
패스워드
gcc를 찾을수 없다고 나오는군요. --; whereis gcc 명령을 내려 정확한 경로명을 확인해봅니다. [embryo@tweny embryo]$ whereis gcc gcc: /usr/bin/gcc /usr/share/man/man1/gcc.1.gz 위와 같이 나온다면 export CC=/usr/bin/gcc 를 해준다음 다시 configure 를 실행하고 컴파일을 시도합니다. 만약 위의 결과가 안나온다면 rpm -qa | grep gcc 해보시기 바랍니다. [embryo@tweny embryo]$ rpm -qa | grep gcc gcc-g77-2.96-98 gcc-c++-2.96-98 gcc-2.96-98 gcc-objc-2.96-98 아무것도 안나온다면 gcc를 받아서 설치하시기 바랍니다. ftp 디렉토리 위치 ftp://linux.sarang.net/mirror/os/linux/distribution/ redhat/redhat/redhat-7.2-en/os/i386/RedHat/RPMS/ 받을 파일들 gcc-2.96-98.i386.rpm gcc-c++-2.96-98.i386.rpm gcc-chill-2.96-98.i386.rpm gcc-g77-2.96-98.i386.rpm gcc-java-2.96-98.i386.rpm gcc-objc-2.96-98.i386.rpm : 테스트 결과입니다. : : [root@localhost gcc-3.0.4]# export CC=gcc : [root@localhost gcc-3.0.4]# ./configure --prefix=/usr/local : Configuring for a i686-pc-linux-gnu host. : Created "Makefile" in /root/gcc-3.0.4 using "mt-frag" : ./configure: gcc: command not found : *** The command 'gcc -o conftest -O2 conftest.c' failed. : *** You must set the environment variable CC to a working compiler. : [root@localhost gcc-3.0.4]# make : bash: make: command not found : : 쉘파일 쓰는데 암것두 없어도 문제 없는건가요...!! : 제거 ..cshrc는 아직 셋팅된것이 없는데.... : 이것하구 문제있는건 아니곗지요..!!!! : : : : 그냥 에러 메시지가 보여주는대로 라면 export CC=gcc 하면 될것 같기도 : : 합니다만, GCC를 컴파일하는 것은 생각처럼 단순하지 않은지라 : : 장담할수 없습니다. : : : : 일단 export CC=gcc 명령을 내린후 configure 명령을 다시 내려 : : 보시기 바랍니다. : : : : make 를 실행해서 또 에러가 난다면 그 에러내용을 첨부해서 다시 : : 질문해보세요. : : : : : 문제는 다음과 같습니다. : : : gcc-3.0.4 다운로드 후 : : : 해당 디렉토리로 이동해서 : : : cd /root/gcc-3.0.4 : : : : : : ./configure --prefix=/usr/local 한 결과인데요.... : : : : : : Configuring for a i686-pc-linux-gnu host. : : : Created "Makefile" in /usr/local using "mt-frag" : : : /tmp/gcc-3.0.4/configure: cc: command not found : : : *** The command 'cc -o conftest -g conftest.c' failed. : : : *** You must set the environment variable CC to a working compiler. : : : : : : 환경변수를 어떻게 setting 해야하는 건가요..?? : : : : : : 쉘파일에 뭘 집어넣어야 하나요...??
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved