Results 1 to 5 of 5

Thread: How to install GCC 4.6

  1. #1
    Join Date
    Jan 2016
    Location
    Boulder, CO
    Posts
    29

    Default How to install GCC 4.6

    I'm trying to replace GCC 5.2.1 with 4.6, anyone know how I would go about doing that on Tumbleweed?

  2. #2
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,761

    Default Re: How to install GCC 4.6

    Since the entire system depends on the c libraries it is seriously unwise to replace the c compiler and thus the c libraries.

  3. #3
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,383
    Blog Entries
    2

    Default Re: How to install GCC 4.6

    Quote Originally Posted by abetterfish View Post
    I'm trying to replace GCC 5.2.1 with 4.6, anyone know how I would go about doing that on Tumbleweed?
    You can find a gcc 4.x using either YAST or zypper, eg
    Code:
    zypper se gcc
    You can install the gcc 4.6 compiler side by side with gcc 5.2.1 in TW.
    Then, to invoke you need to specify the complete path to your 4.6 compiler since the default cannot be changed (today).

    TSU

  4. #4
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: How to install GCC 4.6

    as far as I can tell there is no prebuild packaged for 4.6 that means you will need to build it from source
    https://gcc.gnu.org/gcc-4.6/
    ftp://gd.tuwien.ac.at/gnu/gcc/releases/gcc-4.6.4/
    I'm not quite sure if it will build with gcc 5.2 you might need to install 4.9 to build it, I'm just not sure why use 4.6 isn't 4.9 compatible?

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,383
    Blog Entries
    2

    Default Re: How to install GCC 4.6

    It seems that gcc 4.6 is no longer available in the default TW repo

    GCC 4.6 seems to no longer be available but 4.8 is very close
    http://software.opensuse.org/package/gcc48

    TSU

Posting Permissions

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