简体   繁体   中英

Where is the gcc executable under Linux?

I installed gcc 4.7.0 as a new version, but the result of gcc --version did not change. I learned that I should set a link in /usr/bin/ to the gcc executable. However, under the index of 4.7.0 I installed there are 6 indexes:

bin include lib lib64 libexec share

I am not sure where I can find the gcc executable. Where should the gcc executable be commonly?

Thank you!

It should be under the /usr/bin directory. If it is not, try to find with:

$ which gcc

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM