gcc 버전을 낮추고 싶습니다..도와주세요
안녕하세요...
RedHat 9.0을 설치하고 gcc, gcc-c++ 3.2.2.-5버전을 제거하고 2.96.98버전을 다시 설치했는데 컴파일이 안됍니다. 개발환경이 버전3이상을 지원하지 않기 때문에 2버전으로설치하려고 하는데 RedHat9.0에 gcc 2.버전을 사용해도 문제는 없는지, 그리고 2.버전을 사용해도 상관이 없다면 아래 작업에서 무엇이 잘못되었고 어떻게 수정해야하는지 알고싶습니다.
작업순서는
#rpm -e --nodeps gcc
#rpm -e --nodeps gcc-c++ //gcc,gcc-c++ 제거
#rpm -ivh --nodeps gcc-2.96-98.i386.rpm
#rpm -ivh --nodeps gcc-c++-2.96-98.i386.rpm //gcc, gcc-c++ 2.96.98버전 설치
#rpm -qi gcc
Name : gcc Relocations: (not relocateable)
Version : 2.96 Vendor: Red Hat, Inc.
Release : 98 Build Date: Wed 05 Sep 2001 03:10:42 AM KST
Install Date: Wed 12 Nov 2003 12:12:31 PM KST Build Host: stripples.devel.redhat.com
Group : Development/Languages Source RPM: gcc-2.96-98.src.rpm
Size : 8376529 License: GPL
Signature : DSA/SHA1, Sat 08 Sep 2001 01:06:11 AM KST, Key ID 219180cddb42a60e
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://gcc.gnu.org
Summary : The GNU cc and gcc C compilers.
Description :
The gcc package includes the cc and gcc GNU compilers for compiling C
code.
#rpm -qi gcc-c++
Name : gcc-c++ Relocations: (not relocateable)
Version : 2.96 Vendor: Red Hat, Inc.
Release : 98 Build Date: Wed 05 Sep 2001 03:10:42 AM KST
Install Date: Wed 12 Nov 2003 12:13:04 PM KST Build Host: stripples.devel.redhat.com
Group : Development/Languages Source RPM: gcc-2.96-98.src.rpm
Size : 4513397 License: GPL
Signature : DSA/SHA1, Sat 08 Sep 2001 01:06:13 AM KST, Key ID 219180cddb42a60e
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://gcc.gnu.org
Summary : C++ support for the GNU gcc compiler.
Description :
The gcc-c++ package adds C++ support to the GNU C compiler. It
includes support for most of the current C++ specification, including
templates and exception handling. The static standard C++ library and
C++ header files are included; however, the library for dynamically
linking programs is available separately.
#vi a.c
#g++ a.c
g++: installation problem, cannot exec `cpp0': No such file or directory //error 메세지발생
제가 보기에는 path 문제인것같은데 어떻게 해결해야 할지 모르겠습니다.
바쁘신가운데 끝까지 읽어주셔서 감사합니다.
고수님들의 많은 답변부탁드립니다.
댓글 달기