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

익명 사용자의 이미지

glibc를 먼저 까세요
그리고 2.95 쓰세요 2.96말고..

그럼.

익명 사용자의 이미지

답변 감사드립니다.

제 로그를 보면 glibc rpm 을 설치한 후에도 오류가 계속 됩니다.
Red Hot site 에서 gcc 2.95 rpm 을 찾을 수 없네요.
혹 gcc source 를 compile 하라는 말씀인가요?

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.