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:
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).
--with-proj=/usr
or--with-proj=/usr/local
respectively if installed from package or from source.--with-proj=/usr
did the trick, although I don't know why, since a more exact path definition should be working as well./usr
. Includes are in/usr/include
but binaries are in/usr/bin
and so on. Proj.4 doesn't have a "pkg-config" executable like GDAL.yum install curl-devel
. You will need to do this for all libraries that are missing.