Instruction to Build MapGuide on CentOS 5.4

Build Environment Setup

  1. CentOS 5.4 uses GCC 4.1 as its native compiler so MapGuide 2.2 does compile cleanly on CentOS 5.4. The following rpms are required (list may not be complete):
    yum install gcc gcc-c++ autoconf automake automake17 libtool bison
    yum install libjpeg-devel libpng-devel fontconfig-devel freetype-devel
    yum install libxml2-devel expat-devel curl-devel libxslt-devel openldap-devel
    yum install subversion ant xml-commons-apis
  2. Download Java SE JDK 6 from Sun and install to /usr/local/. Suppose the installation is under /usr/local/jdk1.6.0_21, follow below steps to export JAVA_HOME from .bashrc. (Where to install JDK does not really matter) After installation, run command java -version to test if the installation is successful or not.
    cd /usr/local
    ln -s jdk1.6.0_21 java
    java -version

Open .bashrc in an editor, add the following lines

export JAVA_HOME
export PATH=$PATH:$JAVA_HOME/bin:
  1. Download FD0 3.5.0 CR1 Linux Binary tarball from Here and install to /usr/local/fdo-3.5.0. Installed FDO file structure under /usr/local/ should be like the following:

Build Process

  1. Checkout the source from Subversion
    svn checkout mgdev
    svn export mgdev
  1. Build the Oem tree
    cd mgdev
    pushd Oem/fusion
    ant prepare
    ant compress
    pushd Oem/LinuxApt
  2. Build MapGuide
    libtoolize --force
    automake --add-missing --copy
    ./configure --enable-optimized
    make install

You should now have a copy of MapGuide 2.2 built and installed to /usr/local/mapguideopensource.

Last modified 8 years ago Last modified on Aug 5, 2010 12:46:10 PM