zoukankan      html  css  js  c++  java
  • Ubuntu 18.04安装gcc、g++ 4.8

    直接使用命令安装

    sudo apt-get install gcc-4.8 g++-4.8
    查看是否安装好了

    ls /usr/bin/gcc*
    结果:

    /usr/bin/g++
    /usr/bin/g++-4.8
    /usr/bin/gcc
    /usr/bin/gcc-4.8
    /usr/bin/gcc-ar-4.8
    /usr/bin/gcc-nm-4.8
    /usr/bin/gcc-ranlib-4.8
    应用gcc

    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 100
    sudo update-alternatives --config gcc
    检查gcc

    gcc --version
    结果:

    gcc (Ubuntu 4.8.5-4ubuntu8) 4.8.5
    Copyright (C) 2015 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.
    应用g++

    sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 100
    sudo update-alternatives --config g++
    检查g++

    g++ --version
    结果:

    g++ (Ubuntu 4.8.5-4ubuntu8) 4.8.5
    Copyright (C) 2015 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.

  • 相关阅读:
    hdu 1164 Eddy's research I
    hdu 3794 Magic Coupon
    hdu 1460 完数
    hdu 1201 18岁生日
    求一组整数中所有素数之和
    备忘录
    c判断括弧是否匹配
    N!大整数阶乘问题
    计算一个人从出生到现在活了多少天
    java web.xml配置详解(转)
  • 原文地址:https://www.cnblogs.com/klausage/p/14889691.html
Copyright © 2011-2022 走看看