gcc installation problem
Hi,guys
The command :pm -qa | grep gcc points out that the gcc have been installed. Use 'which gcc' shows gcc in the path /usr/lib/ccache/gcc ,and more a file named gcc under /usr/bin . But i can't use gcc , gcc -v command says that no such file or directory. what's wrong with it, please help. |
Fedora : 1) su
2) yum install gcc gcc-c++ glibc-headers glibc-devel .. will install gcc and the files required to use it. rpm -qa | grep <package-name> ( or part of name ) is telling, what is installed. ( Only /usr/bin/gcc will be usable, and then only if you also have the two "glibc" development packages mentioned.) ..... |
Quote:
By the way i made the gcc file under /usr/bin/ by ln -s /usr/lib/ccache/gcc, which may lead to the problem , i guess. |
Quote:
|
And ccache is not the compiler ( /usr/lib/ccache/* ) :
ccache is a compiler cache. It acts as a caching pre-processor to C/C++ compilers, using the -E compiler switch and a hash to detect when a compilation can be satisfied from cache. This often results in a 5 to 10 times speedup in common compilations. ( ccache-2.4-16.fc12.i686 ) So please delete the link, you made. 1) echo $PATH , as said by @ David1357 2) Try this command : /usr/bin/gcc -v 3) And show the output from : rpm -qa gcc ..... |
Quote:
echo $PATH output: /usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin: /usr/local/bin:/sbin:/bin:/usr/bin:/usr/lib/ccahce/:/root/bin |
Quote:
|
What about
Code:
file /usr/bin/gcc |
Please post your distro & version.
In any case seems like an rpm based system, so try this yum groupinstall "Development Tools" from http://www.cyberciti.biz/faq/rhel-ce...command-howto/. you may need the groupremove option there first. I'd also remove that symlink first as noted above. IOW: 1. remove symlink 2. yum groupremove "Development Tools" 3. yum clean all 4. yum groupinstall "Development Tools" |
Quote:
And I once had deleted the gcc file in /usr/bin, if the the correct gcc rebuilt, the problem would be solved. |
Quote:
EDIT: Follow steps 2 - 4 in chrism01 post #9 Evo2. |
Quote:
|
All times are GMT -5. The time now is 12:13 AM. |