Patrick222122
Posts: 80
Joined: Sun Dec 02, 2012 5:51 pm

GCC

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?

Cloudcentric
Posts: 982
Joined: Fri Sep 14, 2012 9:13 am

Re: GCC

Fri Dec 28, 2012 3:00 pm

What Linux Distribution are you running ?
I know everything about nothing"

User avatar
joan
Posts: 12746
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: GCC

Fri Dec 28, 2012 3:04 pm

I'd expect it is already installed.

Try gcc from the command line.

User avatar
johnbeetem
Posts: 944
Joined: Mon Oct 17, 2011 11:18 pm
Location: The Coast
Contact: Website

Re: GCC

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.

efflandt
Posts: 359
Joined: Mon Dec 03, 2012 2:47 am
Location: Elgin, IL USA

Re: GCC

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.

User avatar
AndyD
Posts: 2320
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: GCC

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

Cloudcentric
Posts: 982
Joined: Fri Sep 14, 2012 9:13 am

Re: GCC

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"

User avatar
AndyD
Posts: 2320
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: GCC

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!

Return to “General discussion”

Who is online

Users browsing this forum: Google [Bot], usamasaeed and 50 guests