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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
Open in new window