Recently I wrote a C code as part of a project.
when I tried to compile it using gcc command, from Trisquel 7.0 (Belenos),
the bash gives this warning
bash: gcc: command not found
Does this means Trisquel don't have a GCC C compiler pre-installed with it?
Is there any workaround possible?
Why not install it or the build-essential package?
signature.asc
Description: PGP signature
Thank you, Micha} and Magic Banana.
But when I type gcc in Synaptic package manager, I have the following
packages marked as installed;
gcc-4.6-base (GNU base-package)
gcc-4.8-base (GNU base-package)
gcc-4.9-base (GNU base-package)
libgcc1 (GNU support library)
libgomp1 (GNU GOMP
Install build-essential. It depends on GCC so it'll drag GCC into being
installed as well.
There is a package that is simply named gcc. The first one in your
screenshot. It depends on the default version of the GNU compiler. But you
can install another version if you wish. gcc-4.9 for instance.
This is the simplest way to do it
1. open a terminal
2. type sudo apt-get install gcc
3. press enter
4. enter your password
5. press y and press enter
6. wait for it to install then Enjoy gcc!
By the by, where can I find the binary executable of GCC for Trisquel?
I read somewhere that GCC maintainers only hosts the source code, whereby
individual free software distributions bakes their packages from its flavour.
Does it also depends on processor architecture? (Mine's is i386.)
/usr/bin/gcc is a symbolic link to the executable of which ever version of
gcc you have installed.
If you wish to download the whole gcc package you can do so here (for Belenos
on i386) http://packages.trisquel.info/belenos/i386/gcc/download
@lembas:
Thank you, dude. I will give it a try.
Once you get the package it can be installed withsudo dpkg -i
/path/to/package
gcc-4.9 is not available in the repos, except for the Go compiler gccgo-4.9.
11 matches
Mail list logo