In this case, the gcc handle should already show up in your / usr / bin / gcc path, which will be a symlink). In an old Solaris 9 answer, gcc should already be installed in / usr / sfw / bin /, but it probably isn't for your PATH. Try this on your current command line: / usr / sfw / bin / gcc if you see even more information http://blog.csdn.net/zjg555543/article/details/8217769