title: How to resolve: Error when bootstrapping CMake on Linux
body: <p>I received an error while trying to build CMake on Linux. I could not reach the <code>make</code> step. I read around the web but still couldn't really fix this.</p>
  
  <p>I tried both of these, but neither worked:</p>
  
  <pre class="lang-sh prettyprint-override"><code>$ ./configure --prefix=/opt/cmake
  
  $ ./bootstrap
  </code></pre>
  
  <p>They resulted in:</p>
  
  <pre class="lang-sh prettyprint-override"><code>CMake Error at CmakeLists.txt:107 (message):
  The C++ compiler does not support C++11 (e.g. std::unique_ptr).
  
  -- Configuring incomplete, errors occurred
  --------------------------------------------
  Error when bootstrapping CMake:
  Problem while running initial CMake
  --------------------------------------------
  </code></pre>
  
  <p>And:</p>
  
  <pre class="lang-sh prettyprint-override"><code>command -v g++
  /usr/bin/g++
  
  g++ --version
  g++ (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1) 7.4.0
  </code></pre>
  
  <p>The code I am trying to compile is in C, so I'm wondering why I'm receiving errors raised with respect to the C++ Compiler? Perhaps any thoughts on this too?</p>