Quote:
#whereis gcc
/usr/lib/gcc
|
To locate the file that will be executed by the command 'gcc' do:
post the output of that
Quote:
#vi /root/.bashrc
PATH=/usr/lib/gcc
|
No wonder you can't execute gcc:
1. There are no executable commands in /usr/lib/gcc, just assorted library files
2. You have set the PATH variable to be
only /usr/lib/gcc not added /usr/lib/gcc to the existing PATHs. To add something onto the existing path do
Code:
PATH=$PATH:/some/path
Also you generally set the PATH variable in the profile scripts (/etc/profile or ~/.bash_profile)
Anyway there is no need to do any of this with Mandrake. The gcc package installs the gcc executable in /usr/bin/ which by default (on all types of installs and for all users) is in your path - you're barking up the wrong tree chasing after $PATH stuff.
Try going to easyurpmi (see my sig) and settting up the software repos. Then try to install gcc again.
If that doesn't work post the output of
Code:
rpm -qa | grep -i gcc