这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
zh:notes:update_gcc [2020/08/28 16:49] pzczxs [Redirect Link] |
zh:notes:update_gcc [2022/06/30 11:28] (当前版本) pzczxs 讨论状态变化了 |
||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== Update g++ ====== | + | ====== Update gcc ====== |
===== Operation System ===== | ===== Operation System ===== | ||
CentOS 6.8 (64 bits), CentOS 7.6 (64 bits) | CentOS 6.8 (64 bits), CentOS 7.6 (64 bits) | ||
行 7: | 行 7: | ||
> wget http://ftp.gnu.org/gnu/gcc/gcc-10.2.0/gcc-10.2.0.tar.gz | > wget http://ftp.gnu.org/gnu/gcc/gcc-10.2.0/gcc-10.2.0.tar.gz | ||
> tar -zxvf gcc-10.2.0.tgz | > tar -zxvf gcc-10.2.0.tgz | ||
+ | > rm -f gcc-10.2.0.tgz | ||
</code> | </code> | ||
行 22: | 行 23: | ||
> make -j4 # for multi-core optimization | > make -j4 # for multi-core optimization | ||
> make install | > make install | ||
- | > ls /usr/local/bin |grep gcc # check whether it is installed successfully or not | + | > ls /usr/local/bin | grep gcc # check whether it is installed successfully or not |
#To restart the operation system,and then check the version. | #To restart the operation system,and then check the version. | ||
行 50: | 行 51: | ||
</code> | </code> | ||
- | ~~DISCUSSION~~ | + | ~~DISCUSSION:closed~~ |