Find the answer to your Linux question:
Results 1 to 3 of 3
I have Fedore Core Linux There is gcc 3.3 I need second compiler - gcc 2.95 . Can I have 2 different compilers simultaneously ? Whether exists HOWTO for such ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2004
    Posts
    6

    2 COMPILERS


    I have Fedore Core Linux
    There is gcc 3.3
    I need second compiler - gcc 2.95 .
    Can I have 2 different compilers simultaneously ?
    Whether exists HOWTO for such installation?

  2. #2
    Just Joined!
    Join Date
    Aug 2004
    Posts
    6
    I need gcc 2.95 for compilation of an ancient kernel .
    I have found some packages in the catalogue /kernel.org /pub/linux/devel/gcc/gcc-2.95.x

    cpp-2.95.3-0.20000503.1.i386.rpm
    gcc-2.95.x/gcc-2.95.3-0.20000503.1.i386.rpm
    gcc-2.95.x/gcc-2.95.3-0.20000503.1.src.rpm
    gcc-2.95.x/gcc-c++-2.95.3-0.20000503.1.i386.rpm
    gcc-2.95.x/gcc-chill-2.95.3-0.20000503.1.i386.rpm
    gcc-2.95.x/gcc-g77-2.95.3-0.20000503.1.i386.rpm
    gcc-java-2.95.3-0.20000503.1.i386.rpm
    gcc-libc5-2.95.3-0.20000503.1.i386.rpm
    gcc-libc5-c++-2.95.3-0.20000503.1.i386.rpm
    gcc-libc5-g77-2.95.3-0.20000503.1.i386.rpm
    gcc-libc5-objc-2.95.3-0.20000503.1.i386.rpm
    gcc-libgcj-2.95.3-0.20000503.1.i386.rpm
    gcc-2.95.x/gcc-objc-2.95.3-0.20000503.1.i386.rpm
    gcc-2.95.x/libstdc++-2.95.3-0.20000503.1.i386.rpm
    gcc-2.95.x/libstdc++-compat-2.95.3-0.20000503.1.i386.rpm
    gcc-2.95.x/libstdc++-devel-2.95.3-0.20000503.1.i386.rpm

    What packages need to be installed from this list for compilation of an ancient kernel?

  3. #3
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    Yes, you can have multiple compilers. I think this is how its done:

    gcc is normally in /usr/bin. You need to look into that directory and see if /usr/bin/gcc is a symlink to /usr/bin/gcc-3.3 or not.

    If it is not and /usr/bin/gcc is the actual gcc3.3 binary then move it to /usr/bin/gcc-3.3.

    Then install gcc-2.95. Move your gcc2.95 binary to /usr/bin/gcc-2.95.

    When you want to compile software with gcc-2.95 symlink /usr/bin/gcc to /usr/bin/gcc-2.95, once you've installed it put the symlink back to /usr/bin/gcc-3.3

Posting Permissions

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