What is 'llvm-gcc-4.2' doing in '/usr' on my Yosemite system?

我的梦境 提交于 2019-12-13 21:03:20

问题


In /usr on my (migrated) Yosemite system I have some old (2011-12) directories that look out of place to me:

/usr/llvm-gcc-4.2
/usr/include/gcc/darwin/4.2

What are these? Are they current; can I get rid of them? I have the latest Xcode and command line tools installed, if that matters.


回答1:


They are the Xcode command line tools, but llvm-gcc is no longer used, so it looks like they haven't been cleaned-up from a previous version.

I think it's best to leave them alone as I cannot see how they will cause an issue; however if they do seem to be causing issues, then mv them to xxx-DELETE_ME and see where you are in a few weeks time. If everything is OK then delete them then.




回答2:


It is just a simlink to clang.

Go to /usr/bin and type ls -l | grep llvm you should see llvm-gcc -> clangcc if it is a simlink



来源:https://stackoverflow.com/questions/27946118/what-is-llvm-gcc-4-2-doing-in-usr-on-my-yosemite-system

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!