使用 cmake 在 rhel 上安装 libgd 2.1.1 (final)?

Install libgd 2.1.1 (final) on rhel using cmake?

希望有人可能已经看到了这个或者能够帮助我推理它。 我正在 Centos/Rhel 上为 mrtg 安装 libgd 2.1.1 并查看 cmake 文件而不是 configure 和 make 文件。 wiki 和文件没有显示如何安装的提示,现在我了解了 cmake 的基础知识,但仍然无法正确安装。

..yum 不是安装 php-gd

的选项

我得到的最远的是:cmake CMakeCache.txt 结果:

...The CXX compiler identification is unknown, 
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not
found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Checking whether system has ANSI C header files
-- ANSI C header files - not found
-- Configuring incomplete, errors occurred!

有人想过如何在 cmake 或可能有效的过程中满足编译器问题吗?感谢您的帮助!

您需要安装合适的开发环境。在 CentoS5/RHEL5 你可以 运行
sudo yum groupinstall "Development Tools"

并且可能
sudo yum groupinstall "Development Libraries"