title: CMake: Cannot open shared object file: No such file or directory
body: <p>I would like to create a CMake project using <code>cmake -i</code> interactive mode, but came across the error:
  <code>cmake: error while loading shared libraries: libidn2.so.0: cannot open shared object file: No such file or directory</code></p>
  
  <p>I've been following the tutorial <a href="https://learnopengl.com/" rel="nofollow noreferrer">https://learnopengl.com/</a>, but use Manjaro Linux instead of Windows, so wanted to use the command line as explained in <a href="https://cmake.org/runningcmake/" rel="nofollow noreferrer">https://cmake.org/runningcmake/</a></p>
  
  <p>On research, most examples suggested adding to the <code>LD_LIBRARY_PATH</code>. I attempted this, locating <code>libidn2.so</code> at <code>/usr/lib</code> and adding it to the relevant path. It had no affect whatsoever however.</p>
  
  <p>Next I attempted uninstalling CMake in the package manager, and curiously the command still gave the same error message, even though given it was uninstalled, CMake should not be recognized as a command at all.</p>
  
  <p>I have had problems with CMake on my machine in the past, having been unable to install and link the CGAL library using CMake, so it may be a symptom of a wider issue.</p>