Linux安装gmp报错:configure: error: could not find a working compiler

安装gmp6.2.1版本时执行命令

$./configure --enable-cxx

出现了错误:

configure: error: could not find a working compiler

我是刚安装的一个Ubuntu20版本。在安装gmp时候报了这个错,是因为我新装的系统缺少依赖gcc,g++。

只要把这两个依赖安装上就可以了。安装方法:

sudo apt-get install gcc
sudo apt-get install g++

你可能感兴趣的:(linux,软件安装问题,linux,gmp)