Find the answer to your Linux question:
Results 1 to 5 of 5
Hello All, To run applications compiled for RedHat 4 Enterprise (gcc3.4) on RedHat 5 Enterprise (gcc4.1), what should I do? Thank you, your help is very much appreciated....
  1. #1
    Just Joined!
    Join Date
    Mar 2006
    Posts
    25

    To run Redhat Enterprise 5 in Redhat 4 Enterprise compatibility mode.

    Hello All,

    To run applications compiled for RedHat 4 Enterprise (gcc3.4) on RedHat 5 Enterprise (gcc4.1), what should I do?

    Thank you, your help is very much appreciated.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    First, install gcc 3.4 from the repositories with Yum. The package names are:

    compat-gcc-34
    compat-gcc-34-c++
    compat-gcc-34-g77 (if you need fortran)
    compat-libgcc-296 (if you have any applications compiled w/ gcc 2.9)

    As indicated, these are the compatibility compilers and include the appropriate libraries. There may be other requirements, but this should at least get you going to the point where you can test your applications.

    FYI, you can have any number of version of the gcc compiler suites installed on your system at the same time. Currently I have 3.4, 4.1, and 4.4 installed. You can tell gcc which version to use - there is a compiler flag (-V version) for that so you can specify at build time which version of the compiler to use. See the gcc man page for more information.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Mar 2006
    Posts
    25
    Hello Rubberman, thank you very much. I will try to install those and will let you know how it goes.

  4. #4
    Just Joined!
    Join Date
    Mar 2006
    Posts
    25
    Quote Originally Posted by Rubberman View Post
    First, install gcc 3.4 from the repositories with Yum. The package names are:

    compat-gcc-34
    compat-gcc-34-c++
    compat-gcc-34-g77 (if you need fortran)
    compat-libgcc-296 (if you have any applications compiled w/ gcc 2.9)

    As indicated, these are the compatibility compilers and include the appropriate libraries. There may be other requirements, but this should at least get you going to the point where you can test your applications.

    FYI, you can have any number of version of the gcc compiler suites installed on your system at the same time. Currently I have 3.4, 4.1, and 4.4 installed. You can tell gcc which version to use - there is a compiler flag (-V version) for that so you can specify at build time which version of the compiler to use. See the gcc man page for more information.

    Hello Rubberman, thank you very much, you are the man. The gcc3.4 applications ran beautifully on RedHat 5.0 after I installed those compat packages.

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Glad to hear it. You might want to mark this problem/thread as "Solved" so it can be closed by the moderators.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...