[GIS] What packages are needed on CentOS to compile MapServer from source

centoscompilationmapserver

I'm trying to configure MapServer 6.2.0 for compilation on CentOS 6.3, but always run into the same problem, no matter what configure options I supply (also the same with no options at all, just plain configure).

It has something to do with g++ (although I do not really understand why it tries to use it).

Here is the output:

http://pastebin.com/8H5vmrPi

What is wrong?

EDIT: This problem was solved with yum install gcc-c++, as suggested by @steko. Now, I have another error, which is weird in my opinion:

configure: checking whether we should include PROJ.4 support...
configure: error: "Could not find proj_api.h or libproj.a/libproj.so in /usr/lib64."

Although locate proj_api.h gives /usr/include/proj_api.h (I also set --with-proj=/usr/include for configure, not as in the paste bin).

Best Answer

Judging from the last few lines of output:

checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking whether the C++ compiler works... configure: error: g++ cannot compile

you are missing the g++ compiler and you should be able to install it with

yum install gcc-c++

You will need also GDAL/OGR and the Proj.4 library. In general, follow the step-by-step instructions at http://www.mapserver.org/installation/unix.html#compiling

Related Question