gcc: command not found. Error while compiling c - program

I installed ubuntu 13.10 for my BeagleBoard Rev-C3 and I am not able to connect the board to internet

But when I tried to compile on c-program

ubuntu@arm:~$ gcc test.c
-bash: gcc: command not found


which gcc gives no result.

ubuntu@arm:~$ which gcc


A search for gcc gives

ubuntu@arm:~$ sudo find / -name ‘gcc
[sudo] password for ubuntu:


and the folder /usr/lib/gcc/arm-linux-gnueabihf contain two folders(4.8 and 4.8.1(, but both are empty.

ubuntu@arm:/usr/lib/gcc/arm-linux-gnueabihf$ ls
4.8 4.8.1


Can anybody help on this issue?

voodoo@hades:~$ which gcc

It's not installed:

"sudo apt-get install gcc"


I don’t know whether it’s relevant to ask, any way… I haven’t connected the board to internet yet. So can I use internet over usb0? or is it possible to install it after downloading the source separately?


Sure... if you properly setup usb0 on the beagle and the host networked "pc"

It has a few dependices, best just to get networking working first,
then use apt-get to install it.