一。检查是否已有安装编译器: 用which gcc 或用gcc --version 或 g++ --version来检查即可。
例子:
# gcc --version
gcc (GCC) 3.3.2
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.