Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我最近安装了 gcc 4.9,之前默认安装了以前版本的 gcc。
当我输入 gcc 时,之前版本的 gcc 会运行。当我输入 gcc 时,如何让我新安装的 gcc 4.9 运行?
你应该做这个:
cd /usr/bin mv gcc gcc-old ln -s gcc-4.9 gcc
或者你应该看看 gcc_select