gcc 버전을 낮추고 싶습니다..도와주세요

winner2316의 이미지

안녕하세요...
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 문제인것같은데 어떻게 해결해야 할지 모르겠습니다.

바쁘신가운데 끝까지 읽어주셔서 감사합니다.

고수님들의 많은 답변부탁드립니다.

confide의 이미지

정확히는 모릅니다만.. . --nodeps 옵션을 너무 좋아하시는군요. 설치시에 아마 더 필요한 패키지가 있었지 않을까... 합니다.

------------------
나는 바보

pynoos의 이미지

cpp0 는 wrapper인 g++이 실행하는 전처리기입니다.
이들 프로그램의 시작위치는

g++ --help 보시면,
g++ -print-search-dirs 라는 명령을 사용하셔서 내부 프로그램들의 실행경로를 확인해보면 됩니다.

kihlle의 이미지

제가 알고 있기로 2.xx 대 버젼에서는 2.95.3이 가장 안정적으로 돌아가는 것으로 알고 있습니다. 2.96 대는 "쓰지말것"을 추천(?)한 것을 본적도 있구요.

3.x 대가 불가능하시다면 2.95.3을 설치하실것을 추천합니다.

homeless

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.