title: How to set C++ environment variable in Linux ubuntu?
body: <p>I just installed Ubuntu on my Virtualbox on Windows.</p>
  
  <p>I was trying to install cmake and the installation guide in the cmake website asked me to do the following steps </p>
  
  <pre><code>./bootstrap
  make
  make install
  </code></pre>
  
  <p>But when I just did the <code>./bootstrap</code> command I get the following list of errors, can anyone suggest me how I can set the C++ compiler on my system. As I just installed Ubuntu perhaps the C++ is not set currently.</p>
  
  <p>Kindly help.</p>
  
  <hr>
  
  <pre>
  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
  </pre>