GCC


8 posts
by Patrick222122 » Fri Dec 28, 2012 2:39 pm
I heard that GCC is the best C compiler for the pi, but I am having trouble firguring out how to download it. I know you have to do through a mirror site but when I checked a few of the american sites. All I found was list of foulders. Do I have to download every one, one by one or is there something I am missing?
Posts: 80
Joined: Sun Dec 02, 2012 5:51 pm
by Cloudcentric » Fri Dec 28, 2012 3:00 pm
What Linux Distribution are you running ?
I know everything about nothing"
Posts: 982
Joined: Fri Sep 14, 2012 9:13 am
by joan » Fri Dec 28, 2012 3:04 pm
I'd expect it is already installed.

Try gcc from the command line.
User avatar
Posts: 5200
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK
by johnbeetem » Fri Dec 28, 2012 3:07 pm
GCC should be present in standard GNU/Linux distributions. Open a terminal window and enter "gcc -v" and if GCC is present it will tell you which version is installed.
User avatar
Posts: 942
Joined: Mon Oct 17, 2011 11:18 pm
Location: The Coast
by efflandt » Sat Dec 29, 2012 7:45 am
It is in the repositories. If you do not have it in Raspian:
Code: Select all
sudo apt-get update && sudo apt-get -y dist-upgrade
sudo apt-get gcc

I am not familiar with Arch.
Posts: 359
Joined: Mon Dec 03, 2012 2:47 am
Location: Elgin, IL USA
by AndyD » Sat Dec 29, 2012 8:14 am
This may work better
Code: Select all
sudo apt-get update && sudo apt-get -y dist-upgrade
sudo apt-get install gcc

... sorry @efflandt
Posts: 906
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
by Cloudcentric » Sat Dec 29, 2012 9:21 am
AndyD wrote:This may work better
Code: Select all
sudo apt-get update && sudo apt-get -y dist-upgrade
sudo apt-get install gcc

... sorry @efflandt



Will only work with Linux Debian based Distro's..................

The OP may be using Fedora or Arch or Slackware or RiscOS or TinyCore etal
I know everything about nothing"
Posts: 982
Joined: Fri Sep 14, 2012 9:13 am
by AndyD » Sat Dec 29, 2012 9:48 am
Cloudcentric wrote:Will only work with Linux Debian based Distro's..................
The OP may be using Fedora or Arch or Slackware or RiscOS or TinyCore etal

Yes indeed!
Posts: 906
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia