You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



GCC 9 and 10 seem to be installed

Author (Read 5632 times)

0 Members and 1 Guest are viewing this topic.

Re: GCC 9 and 10 seem to be installed
« Reply #11 on: February 26, 2021, 09:56:52 AM »
 

Moltke

  • Platinum Level Poster
  • **********
  • 1134
    Posts
  • Reputation: 126
  • Linux Lite Member
    • View Profile

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 5.x
Did you read my reply???
The accepted answer talks about update-alternatives which I've already shown says there are no alternatives.

But if this is as simple as just changing the symlink and there will be no issues sure, I'll change.

Open the terminal and run
Code: [Select]
gcc -v
And paste the output in your reply.
Without each others help there ain't no hope for us :)
Need a translation service? https://www.deepl.com/es/translator
 

Re: GCC 9 and 10 seem to be installed
« Reply #10 on: February 25, 2021, 03:28:50 PM »
 

AcsPrime

  • New to Forums
  • *
  • 10
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
Did you read my reply???
The accepted answer talks about update-alternatives which I've already shown says there are no alternatives.

But if this is as simple as just changing the symlink and there will be no issues sure, I'll change.
 

Re: GCC 9 and 10 seem to be installed
« Reply #9 on: February 25, 2021, 01:05:50 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8771
    Posts
  • Reputation: 799
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
 

Re: GCC 9 and 10 seem to be installed
« Reply #8 on: February 25, 2021, 01:03:41 PM »
 

AcsPrime

  • New to Forums
  • *
  • 10
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
I did! This is what I get:
Code: [Select]
~ sudo update-alternatives --config gcc
update-alternatives: error: no alternatives for gcc

 

Re: GCC 9 and 10 seem to be installed
« Reply #7 on: February 25, 2021, 12:01:29 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8771
    Posts
  • Reputation: 799
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Did you read reply #1?
 

Re: GCC 9 and 10 seem to be installed
« Reply #6 on: February 25, 2021, 11:27:50 AM »
 

AcsPrime

  • New to Forums
  • *
  • 10
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
The reason is that I installed gcc10, but I was hoping that gcc10 would then be set as default :)
 

Re: GCC 9 and 10 seem to be installed
« Reply #5 on: February 25, 2021, 06:08:44 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8771
    Posts
  • Reputation: 799
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
They may both be there for a reason. You can test your option in a VM first.

Sent from my mobile phone using Tapatalk

 

Re: GCC 9 and 10 seem to be installed
« Reply #4 on: February 25, 2021, 04:59:17 AM »
 

AcsPrime

  • New to Forums
  • *
  • 10
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
Hello again,

It seems that now I really do have gcc 9 and gcc 10:
Code: [Select]
 ls -la /usr/bin/ | grep gcc
-rwxr-xr-x  1 root root         428 May  7  2006 c89-gcc
-rwxr-xr-x  1 root root         454 Apr 11  2011 c99-gcc
lrwxrwxrwx  1 root root           5 Feb 20 10:38 gcc -> gcc-9
lrwxrwxrwx  1 root root          23 Aug  8  2020 gcc-10 -> x86_64-linux-gnu-gcc-10
lrwxrwxrwx  1 root root          22 Feb 20 10:38 gcc-9 -> x86_64-linux-gnu-gcc-9
lrwxrwxrwx  1 root root           8 Feb 20 10:38 gcc-ar -> gcc-ar-9
lrwxrwxrwx  1 root root          26 Aug  8  2020 gcc-ar-10 -> x86_64-linux-gnu-gcc-ar-10
lrwxrwxrwx  1 root root          25 Feb 20 10:38 gcc-ar-9 -> x86_64-linux-gnu-gcc-ar-9
lrwxrwxrwx  1 root root           8 Feb 20 10:38 gcc-nm -> gcc-nm-9
lrwxrwxrwx  1 root root          26 Aug  8  2020 gcc-nm-10 -> x86_64-linux-gnu-gcc-nm-10
lrwxrwxrwx  1 root root          25 Feb 20 10:38 gcc-nm-9 -> x86_64-linux-gnu-gcc-nm-9
lrwxrwxrwx  1 root root          12 Feb 20 10:38 gcc-ranlib -> gcc-ranlib-9
lrwxrwxrwx  1 root root          30 Aug  8  2020 gcc-ranlib-10 -> x86_64-linux-gnu-gcc-ranlib-10
lrwxrwxrwx  1 root root          29 Feb 20 10:38 gcc-ranlib-9 -> x86_64-linux-gnu-gcc-ranlib-9
lrwxrwxrwx  1 root root           5 Feb 20 10:38 x86_64-linux-gnu-gcc -> gcc-9
-rwxr-xr-x  1 root root     1227880 Aug  8  2020 x86_64-linux-gnu-gcc-10
-rwxr-xr-x  1 root root     1154192 Aug  8  2020 x86_64-linux-gnu-gcc-9
lrwxrwxrwx  1 root root           8 Feb 20 10:38 x86_64-linux-gnu-gcc-ar -> gcc-ar-9
-rwxr-xr-x  1 root root       35464 Aug  8  2020 x86_64-linux-gnu-gcc-ar-10
-rwxr-xr-x  1 root root       35464 Aug  8  2020 x86_64-linux-gnu-gcc-ar-9
lrwxrwxrwx  1 root root           8 Feb 20 10:38 x86_64-linux-gnu-gcc-nm -> gcc-nm-9
-rwxr-xr-x  1 root root       35464 Aug  8  2020 x86_64-linux-gnu-gcc-nm-10
-rwxr-xr-x  1 root root       35464 Aug  8  2020 x86_64-linux-gnu-gcc-nm-9
lrwxrwxrwx  1 root root          12 Feb 20 10:38 x86_64-linux-gnu-gcc-ranlib -> gcc-ranlib-9
-rwxr-xr-x  1 root root       35464 Aug  8  2020 x86_64-linux-gnu-gcc-ranlib-10
-rwxr-xr-x  1 root root       35464 Aug  8  2020 x86_64-linux-gnu-gcc-ranlib-9


so gcc is set to gcc9 how to I get rid of gcc9 or at least just switch gcc to gcc10 (and hopefully not cause conflicts on anything)
 

Re: GCC 9 and 10 seem to be installed
« Reply #3 on: February 20, 2021, 10:25:08 AM »
 

AcsPrime

  • New to Forums
  • *
  • 10
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
Hey,

This is the image: https://pasteboard.co/JPdQnzZ.png

It seems that I don't have an extra gcc even though I am seeing one there.
Thanks for your help
 

Re: GCC 9 and 10 seem to be installed
« Reply #2 on: February 20, 2021, 07:30:44 AM »
 

Moltke

  • Platinum Level Poster
  • **********
  • 1134
    Posts
  • Reputation: 126
  • Linux Lite Member
    • View Profile

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 5.x
"Image not found" That img you uploaded, is not there. Use imgur https://imgur.com/ or imgBB https://imgbb.com/  https://www.linuxliteos.com/forums/introductions/forum-posting-guidelines/

You can keep both, and make one the default, just type in a terminal
Code: [Select]
sudo update-alternatives --config gcc

You'll see something like
Code: [Select]
There are 3 choices for the alternative gcc (providing /usr/bin/gcc).

  Selection    Path            Priority   Status
------------------------------------------------------------
* 0            /usr/bin/gcc-8    90        auto mode
  1            /usr/bin/gcc-9    70        manual mode
  2            /usr/bin/gcc-10  80        manual mode
 
Press <enter> to keep the current choice[*], or type selection number:

Select the one you want to use and that's it.

Hope this helps! :)
Without each others help there ain't no hope for us :)
Need a translation service? https://www.deepl.com/es/translator
 

GCC 9 and 10 seem to be installed
« Reply #1 on: February 20, 2021, 06:48:22 AM »
 

AcsPrime

  • New to Forums
  • *
  • 10
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
Hello,

I installed Linux Lite 1h ago and in the package manager I can see gcc 9 and gcc 10:
https://pasteboard.co/798ad879-31a9-442f-8c42-660ac1457acf

I really only need the latest and greatest not sure how or why I have two gcc.
I did try to search for gcc 10 in my system but I can only find gcc 9.

How can I just have gcc 10 and not mess anything up?
« Last Edit: October 12, 2021, 01:21:31 PM by firenice03 »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section