You need a C++ compiler. Please install it using the System Package Management tools.
解决办法:
执行sudo apt-get install build-essential
Ubuntu并没有提供C/C++的编译环境,因此还需要手动安装。
如果想在Ubuntu中编译c/c++程序,只需要安装该软件包就可以了
Ubuntu C++ 编译环境
本文介绍如何在Ubuntu系统中设置C/C++的编译环境。由于Ubuntu默认未安装编译工具,需要通过系统包管理器进行安装。文中详细说明了使用sudo apt-get install build-essential命令来一次性安装所需的编译工具。
You need a C++ compiler. Please install it using the System Package Management tools.
解决办法:
执行sudo apt-get install build-essential
Ubuntu并没有提供C/C++的编译环境,因此还需要手动安装。
如果想在Ubuntu中编译c/c++程序,只需要安装该软件包就可以了

被折叠的 条评论
为什么被折叠?