title: Ceres make fails: "Makefile:138: recipe for target 'all' failed"
body: <p>I am trying to install Ceres on Ubuntu 16.04, following the <a href="http://ceres-solver.org/installation.html" rel="nofollow noreferrer">installation guide on ceres website</a>, however when the <code>make</code> command fails, showing the following error:</p>
  
  <pre><code>[ 94%] Built target helloworld_numeric_diff
  [ 94%] Built target helloworld_analytic_diff
  [ 95%] Built target curve_fitting
  [ 95%] Built target circle_fit
  [ 95%] Building CXX object examples/CMakeFiles/nist.dir/nist.cc.o
  g++-5: internal compiler error: Killed (program cc1plus)
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See &lt;file:///usr/share/doc/gcc-5/README.Bugs&gt; for instructions.
  examples/CMakeFiles/nist.dir/build.make:62: recipe for target 'examples/CMakeFiles/nist.dir/nist.cc.o' failed
  make[2]: *** [examples/CMakeFiles/nist.dir/nist.cc.o] Error 4
  CMakeFiles/Makefile2:5885: recipe for target 'examples/CMakeFiles/nist.dir/all' failed
  make[1]: *** [examples/CMakeFiles/nist.dir/all] Error 2
  Makefile:138: recipe for target 'all' failed
  make: *** [all] Error 2
  </code></pre>
  
  <p>I am fairly new to Linux, so any help understanding what has gone wrong would be very appreciated. </p>