You are not logged in.
Pages: 1
Hello,
having installed Q4OS with the TDE and the basic option i found gcc-10 compiler already installed (in Synaptic). I tried:
me@flex:~\> whereis gcc
gcc: /usr/lib/gcc /usr/share/gcc
me@flex:~\> which gcc
me@flex:~\> export PATH=$PATH:/usr/lib/gcc
me@flex:~\> export PATH=$PATH:/usr/share/gcc
me@flex:~\> which gcc
me@flex:~\> gcc demo.c -o demo
bash: gcc: Kommando nicht gefunden. [comand not found]
me@flex:~\>
"which gcc" still shows an empty result! What ist still wrong or missing here?
Thanks
Offline
What Q4OS edition are you using ? You may only need to install "gcc" package:
$ sudo apt install gcc
Offline
Thanks a lot - that helped (on 4.12)!
But what is gcc-10 then? According to the description in synaptic it should be a more recent version of gcc!?
Offline
After installation, gcc is a symbolic link to gcc-10, which in turn is a symbolic link to the real compiler, which depends on your system; on my system it is x86_64-linux-gnu-gcc-10 ... Admit it is easier to type gcc at the command line prompt than x86_64-linux-gnu-gcc-10 to run the compiler
Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD
Online
Ahh ok, and this explains why the size of the gcc package was so astonishingly small !!
Offline
Pages: 1