So I tried to install clang + cmake to compile a simple C++ program and I\'m getting the following error:
-- The C compiler identification is GNU 4.8.3
-- Th
Your /home/gnu/bin/c++ seem to require additional flag to link things properly and CMake doesn't know about that.
To use /usr/bin/c++ as your compiler run cmake with -DCMAKE_CXX_COMPILER=/usr/bin/c++.
Also, CMAKE_PREFIX_PATH variable sets destination dir where your project' files should be installed. It has nothing to do with CMake installation prefix and CMake itself already know this.
You need the development libraries and headers for C++ library, try
yum install libstdc++-devel