Link to home
Start Free TrialLog in
Avatar of AmyL
AmyL

asked on

How to get GCC on Debian

I did:
sudo apt-get install build-essential

Then I did:
whereis gcc make

The output was: /usr/lib/gcc

I then did
cd /usr/lib/gcc

..and tried:
gcc -lX11 prog.c -o prog ./prog.c

And the output was;
Bash: gcc command not found

Please help. I just want to get to the point that I can compile c code (for X).

Thanks,
Amy
ASKER CERTIFIED SOLUTION
Avatar of netmaster1355
netmaster1355
Flag of Iran, Islamic Republic of image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Please make sure build-essential is installed:
sudo apt-get install build-essential

Open in new window

Avatar of AmyL
AmyL

ASKER

You were correct. It appears as though Debian 5 is officially "dead", and my installation was attempting to contact an ftp server no longer in use. I upgraded Debian and it works fine now.