Results 1 to 10 of 10

Thread: Install older gcc version?

  1. #1

    Default Install older gcc version?

    I installed some program that supports gcc up to 4.3.4 version, but in OpenSUSE 12.1 I have 4.6.2.
    How can I install an older version of gcc?

  2. #2
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Install older gcc version?

    Am 19.11.2011 11:46, schrieb volter:
    >
    > I installed some program that supports gcc up to 4.3.4 version, but
    > in OpenSUSE 12.1 I have 4.6.2. How can I install an older version of
    > gcc?
    >

    You can compile it from source and install it into a non standard
    directory to avoid conflicts with the system, but be warned this asks
    for trouble using a program which is so outdated. Is there any chance
    that where you have it from fixes that?
    Which program is it? Maybe there is aptch somethere to make it
    compatible with 4.6.

    --
    PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
    4.6.0 | GeForce GT 420 | 16GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
    nVidia ION | 3GB Ram

  3. #3

    Default Re: Install older gcc version?

    I have old version of Matlab and for finishing the installation I have to run some file (like described in the manual). It was running perfect in OpenSUSE 11.3.
    From Matlab website I understood they support up to gcc 4.3.x - OpenSUSE 11.x . So if its a hard task to do I think I'll wait for an update or use windows version.

  4. #4
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Install older gcc version?

    Am 19.11.2011 20:06, schrieb volter:
    >
    > I have old version of Matlab and for finishing the installation I have
    > to run some file (like described in the manual). It was running perfect
    > in OpenSUSE 11.3.
    > From Matlab website I understood they support up to gcc 4.3.x -
    > OpenSUSE 11.x . So if its a hard task to do I think I'll wait for an
    > update or use windows version.
    >
    >

    I guess you tried what happens if you simply try with 4.6.2, what is the
    error message?
    I am afraid it will be some work without a guarantee for success making
    a 4.3 work.

    --
    PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
    4.6.0 | GeForce GT 420 | 16GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
    nVidia ION | 3GB Ram

  5. #5

    Default Re: Install older gcc version?

    I don't really know how to force the file work with gcc 4.6. I simply run the file in terminal and it printing a message about not supported version of gcc and stop the installation.

  6. #6
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Install older gcc version?

    Am 19.11.2011 22:36, schrieb volter:
    >
    > I don't really know how to force the file work with gcc 4.6. I simply
    > run the file in terminal and it printing a message about not supported
    > version of gcc and stop the installation.
    >

    Ah, ok - I hoped for something more descriptive. To be honest, if I were
    you I would use it with windows then until (hopefully) a solution from
    MathWorks is available.


    --
    PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
    4.6.0 | GeForce GT 420 | 16GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
    nVidia ION | 3GB Ram

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Install older gcc version?

    On 2011-11-19 20:06, volter wrote:
    >
    > I have old version of Matlab and for finishing the installation I have
    > to run some file (like described in the manual). It was running perfect
    > in OpenSUSE 11.3.
    > From Matlab website I understood they support up to gcc 4.3.x -
    > OpenSUSE 11.x . So if its a hard task to do I think I'll wait for an
    > update or use windows version.


    You can simply install 11.3 as a small virtual machine. Then you can run it
    inside, or via ssh -X in the host. It will run slower, though, depending on
    how many resources you assign the virtual machine.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  8. #8
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Install older gcc version?

    Am 19.11.2011 23:13, schrieb Carlos E. R.:
    > You can simply install 11.3 as a small virtual machine. Then you can run it
    > inside, or via ssh -X in the host. It will run slower, though, depending on
    > how many resources you assign the virtual machine.
    >

    It is not that I did not consider myself such a solution, but what
    stopped me from doing it is that 11.3 is soon end of live and the
    performance penalty of a virtual machine could be a show stopper for
    using Matlab (provided it is used for numerically intensive tasks, what
    I assume since this is its intended use).

    --
    PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
    4.6.0 | GeForce GT 420 | 16GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
    nVidia ION | 3GB Ram

  9. #9
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Install older gcc version?

    I just want to add that gcc 4.3.4 compiles without error, downloaded it
    from here ftp://ftp.fu-berlin.de/unix/language...ases/gcc-4.3.4
    (any other mirror will do it also)
    Code:
    tar xvf gcc-core-4.3.4.tar.bz2
    cd gcc-4.3.4
    ../configure --prefix=/opt/gcc-4.3.4
    make #this will take a while
    sudo make install
    a full blown gcc is now in /opt/gcc-4.3.4 with all libraries and include
    files, the difficult thing is now that I do not know the matlab
    installer script, you need to figure out how to tell it to look for the
    gcc in a non standard directory and to use that instead of the systems
    gcc (and also the libraries and includes from there).
    Maybe tweaking a few environment variables is enough, but you should ask
    MathWorks about that.
    (Note if the gcc core is not enough and you need also fortran and c++
    you need to do the same for g++, gfortran and what else you need).

    --
    PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
    4.6.0 | GeForce GT 420 | 16GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
    nVidia ION | 3GB Ram

  10. #10
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Install older gcc version?

    On 2011-11-19 23:34, Martin Helm wrote:

    > It is not that I did not consider myself such a solution, but what
    > stopped me from doing it is that 11.3 is soon end of live


    That doesn't matter, it is one of the advantages of virtualization. You
    keep that VM isolated, only network with the host.

    > and the
    > performance penalty of a virtual machine could be a show stopper for
    > using Matlab (provided it is used for numerically intensive tasks, what
    > I assume since this is its intended use).


    That is a problem, yes.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

Posting Permissions

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