|  | 
 
 发表于 2020-10-24 10:28:59
|
显示全部楼层 
| linux默认是没有安装curl的,您需要自己安装。 apt-get这个包管理工具是支持的,使用方法可以参照下边的指令。
 升级gcc
 首先安装依赖:
 sudo apt-get install libgmp-dev
 sudo apt-get install libmpfr4 libmpfr-dev
 sudo apt-get install libmpc-dev libmpc2
 sudo apt-get install libtool
 sudo apt-get install m4
 sudo apt-get install bison
 sudo apt-get install flex
 sudo apt-get install autoconf
 
 接下来进入到安装gcc4.8.1 的主要步骤:
 sudo add-apt-repository ppa:ubuntu-toolchain-r/test
 sudo apt-get update
 
 sudo apt-get install gcc-4.8
 sudo apt-get install g++-4.8
 sudo apt-get install gcc-4.8-multilib
 sudo apt-get install g++-4.8-multilib
 sudo apt-get install gcc-4.8-doc
 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20
 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20
 sudo update-alternatives --config gcc
 sudo update-alternatives --config g++
 
 sudo apt-get update
 | 
 |