gcc 버젼을 2.95 이상으로 올리려고 합니다.

사용 환경 RedHot 6.2, gcc 버젼은 2.91.66
제가 이용하려는 프로젝트가 gcc 버젼 2.95 이상을 요구하므로
업그레이드된 gcc rpm 을 다운받아 설치하려 하고 있습니다.
종속성이나 의존성에 대한 메시지를 보고 하나씩 처리하는데,
gcc-2.96-81.i386.rpm 설치를 위해 cpp-2.96-81 이 필요하다는 메시지가 있어
cpp rpm 을 설치하는데 다음 오류가 발생합니다.
error failed dependencies libc.so.6(GLIBC_2.2) is needed by cpp-2.96-
81
glibc-2.2.2-10.src.rpm 을 설치해도 libc.so.6(GLIBC_2.2) 오류가 나네요.
작업 순서를 적어보면.. 좀 길지만 자세히 적습니다.
마지막 line 을 보시면 아시겠지만 이후 작업을 어떻게 해야 하지요?
작업 방법에 문제가 있다면 문제점이라도 알려주시면 감사하겠습니다.
도움을 요청하며 읽어주셔서 감사합니다.
============================================================
rpm -qf /usr/bin/gcc 를 이용하여 패키지 확인하니 egcs-1.1.2-30 더군요.
다음과 같이 메시지가 나와 아래 패키지를 먼저 삭제한 후 egcs-1.1.2-30 삭
제 작업했지요.
[root@vos1 kjmun]# rpm -e egcs-1.1.2-30
error removing these packages would break dependencies
egcs = 1.1.2 is needed by egcs-c++-1.1.2-30
egcs = 1.1.2 is needed by egcs-g77-1.1.2-30
egcs = 1.1.2 is needed by egcs-objc-1.1.2-30
[root@vos1 kjmun]# rpm -e egcs-1.1.2-30
cannot remove /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 -
directory not empty
cannot remove /usr/lib/gcc-lib/i386-redhat-linux - directory not empty
[root@vos1 kjmun]# cd /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66
[root@vos1 egcs-2.91.66]# ls
cpp*
[root@vos1 egcs-2.91.66]# rm cpp
[root@vos1 kjmun]# rmdir /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66
[root@vos1 kjmun]# rmdir /usr/lib/gcc-lib/i386-redhat-linux
[root@vos1 kjmun]# rpm -ivh gcc-2.96-81.i386.rpm
error failed dependencies
binutils >= 2.9.5.0.41 is needed by gcc-2.96-81
cpp = 2.96-81 is needed by gcc-2.96-81
[root@vos1 kjmun]# rpm -ivh binutils-2.9.5.0.22-6
file /usr/lib/libopcodes.so from install of binutils-2.10.91.0.2-3
conflicts with file from package binutils-2.9.5.0.22-6
[root@vos1 kjmun]# rpm -e binutils-2.9.5.0.22-6
error removing these packages would break dependencies
binutils is needed by rpmlint-0.8-10
[root@vos1 kjmun]# rpm -e rpmlint-0.8-10
[root@vos1 kjmun]# rpm -e binutils-2.9.5.0.22-6
[root@vos1 kjmun]# rpm -ivh binutils-2.10.91.0.2-3.i386.rpm
binutils
##################################################
[root@vos1 kjmun]# rpm -ivh cpp-2.96-81.i386.rpm
error failed dependencies
libc.so.6(GLIBC_2.2) is needed by cpp-2.96-81
[root@vos1 kjmun]# rpm -ivh glibc-2.2.2-10.src.rpm
glibc
##################################################
[root@vos1 kjmun]# rpm -ivh cpp-2.96-81.i386.rpm
error failed dependencies
libc.so.6(GLIBC_2.2) is needed by cpp-2.96-81
Re: gcc 버젼을 2.95 이상으로 올리려고 합니다.
glibc를 먼저 까세요
그리고 2.95 쓰세요 2.96말고..
그럼.
Re^2: gcc 버젼을 2.95 이상으로 올리려고 합니다.
답변 감사드립니다.
제 로그를 보면 glibc rpm 을 설치한 후에도 오류가 계속 됩니다.
Red Hot site 에서 gcc 2.95 rpm 을 찾을 수 없네요.
혹 gcc source 를 compile 하라는 말씀인가요?
댓글 달기