如何在Linux ubuntu中设置C++环境变量?

Hag*_*ble 2 c++ linux environment-variables

我刚刚在Windows上的Virtualbox上安装了Ubuntu.

我正在尝试安装cmake,cmake网站上的安装指南要求我执行以下步骤

./bootstrap
make
make install
Run Code Online (Sandbox Code Playgroud)

但是,当我刚刚执行./bootstrap命令时,我得到以下错误列表,任何人都可以建议我如何在我的系统上设置C++编译器.因为我刚刚安装了Ubuntu,目前可能没有设置C++.

请帮助.


CMake 2.8.1, Copyright 2000-2009 Kitware, Inc.
C compiler on this system is: cc

Error when bootstrapping CMake:
Cannot find appropriate C++ compiler on this system.
Please specify one using environment variable CXX.
See cmake_bootstrap.log for compilers attempted.

Log of errors: /home/vikboy/Downloads/cmake-2.8.1/Bootstrap.cmk/cmake_bootstrap.log

Ign*_*ams 9

build-essential通过apt 安装软件包.

sudo apt-get install build-essential
Run Code Online (Sandbox Code Playgroud)