Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB64-PE v3.14.0 is now available
#21
Quote: Can I simply remove the old one using apt?
I think that it should be possible but it could also be tedious and complicated, what about binutils and perhaps libraries tied to gcc-7.5.0
it might be as simple as sudo apt purge gcc-7.5.0 but who knows ?
I am interested to know how it goes
Reply
#22
Mint will probably work the same way as Debian, Mint is an offshoot of it.

I can only say that for SuSE. The old version has to be deleted using Yast, as it is probably still listed first in the system. For SuSE users: I only have WSL2, and there is only the command line Yast, the graphical Yast is basically no different. - The installation is done with Zypper - I only have a slightly older example here:

Quote:18:13 17.08.2022
Das ist nur das Repo für Suse 12.1 - nicht der GCC
zypper addrepo https://download.opensuse.org/repositori...:12.1.repo
zypper refresh
zypper install gcc
If configured correctly, the repositories are updated when you start.

[Image: 2024-08-12-225717.jpg]

The old junk is still there, but it has been deleted out the system.

[Image: GCC-7-32024-08-12-230144.jpg]

The complete GCC is installed

[Image: GCC-13-2024-08-12-230247.jpg]

[Image: GCC-Version2024-08-13.jpg]
Reply
#23
Now that is crazy. I just learned, that there are multiple versions of GCC installed in openSUSE Leap 15.6.
Here from my terminal:
Quote:cybermonkey@localhost:~> gcc --version
gcc (SUSE Linux) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

cybermonkey@localhost:~> gcc-10 --version
gcc-10 (SUSE Linux) 10.4.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

cybermonkey@localhost:~> gcc-13 --version
gcc-13 (SUSE Linux) 13.3.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Now the only question is, how do I tell Linux that it should use gcc-13 instead of gcc?
Reply
#24
you should try instead:

Code: (Select All)
$ g++ --version
or it could be called gcc-g++.

you want the latest version of it. it might have to be arranged through an alias.

otherwise you should stick to linux mint. no sense getting headaches about this.
Reply
#25
Yes there is also a g++-13 available...
Reply
#26
Quote:Now the only question is, how do I tell Linux that it should use gcc-13 instead of gcc?
As I already wrote, delete 7 & 10 via Yast. Then it will be deleted correctly without problems.

Exactly: 7 & 10 are not deleted from the repositories, they are only uninstalled in the installed system. That's why you can still see them in Yast. - It's just a SuSI, women are just complicated!  Tongue
Reply
#27
I think that deleting the older gcc/g++ may not be ideal, instead use a symlink https://stackoverflow.com/questions/4484...ons-of-gcc
https://linuxconfig.org/how-to-switch-be...-jellyfish
the links may be talking about different distros but the suggestions put forth should help
Reply
#28
Jack, with Yast that is absolutely correct.

I wrote it, Yast cleanly deletes unnecessary software. If you try to delete something in Yast that the system needs, you get a warning message. So you basically have to want to ruin the system by force.

If you don't believe me, install SuSE and test Yast.
Reply




Users browsing this thread: 3 Guest(s)