Switch to GCC 5

I have installed GCC 5, but I can’t figure out how to switch to it.

When I try to use update-alternatives i get an error:

update-alternatives: error: no alternatives for gcc

On 11/11/2015 10:26 AM, Let Me Be wrote:
>
> I have installed GCC 5, but I can’t figure out how to switch to it.
>
> When I try to use update-alternatives i get an error:
>
> Code:
> --------------------
> update-alternatives: error: no alternatives for gcc
> --------------------
>
>

Which package/repo did you use? IIRC, it got put in some strange
directory so maybe its not in your $PATH. I believe there is a way to
manually add a file to the update-alternatives but cant remember what it
was at the moment.


openSUSE Leap (42.1) 64 bit
Plasma 5

I just used the gcc-5 package that is in the standard repository.

I submitted a bugzilla request awhile back for TW to provide an update-alternatives config for gcc (but no answer, probably everyone’s busy).

AFAIK,
As of today if you want to implement GCC 5 in LEAP or 13.2 (or GCC 4 in TW) you need to explicitly describe the path in your command.

Hmmmm…
I can’t find my original submission (approx 6 mths ago).
Maybe someone should create a new feature request, if you create one I’ll post a “me, too” to the idea which I think is badly needed.

TSU