First:
Is gcc/g++ in your path? Type:
whereis gcc
and see if it's on your system.
If that doesn't work, these may find it:
locate gcc
which gcc
If it isn't on your system, you need to install it from the
CD's that you used to install your system. If it is on your
system, you need to add its location to your $PATH
environment variable.
Example:
$>whereis gcc
/usr/bin/gcc
$>echo $PATH
/bin:/usr/local/bin
$>PATH=$PATH:/usr/bin
$>export PATH
$>echo $PATH
/bin:/usr/local/bin:/usr/bin
In the above example, lines starting with $> indicate
a prompt with user input, lines without a prompt indicate
the example results of the inputs.
Hope this helps,
gaxprels



Reply With Quote


Bookmarks