How do I do I run gcc-49 with just 'gcc' on OSX?

邮差的信 提交于 2019-12-14 03:16:15

问题


I recently installed gcc 4.9, with a previous version of gcc that was installed by default before.

When I type gcc, the previous version of gcc runs. How could I make my newly installed gcc 4.9 run when I type gcc?


回答1:


You should do this:

cd /usr/bin
mv gcc gcc-old
ln -s gcc-4.9 gcc

Or you should have a look to gcc_select



来源:https://stackoverflow.com/questions/23280834/how-do-i-do-i-run-gcc-49-with-just-gcc-on-osx

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