安装 gcc 和 g++

安装 gcc 和 g++

我尝试了所有命令

sudo apt-get build-dep build-essential
sudo apt-get install gcc
sudo apt-get install g++

但我总是收到这个错误。

The following packages have unmet dependencies:
 build-essential : Depends: gcc (>= 4:4.4.3) but it is not going to be installed
                   Depends: g++ (>= 4:4.4.3) but it is not going to be installed
E: Build-dependencies for build-essential could not be satisfied.

答案1

命令 build-dep 用于安装要从源代码编译的软件包的依赖项。您是否尝试过执行

sudo apt-get install build-essential

相关内容