Building MapGuide on Fedora Core 4

From OSGeo
Revision as of 20:42, 9 November 2006 by Wiki-Jasonbirch (talk | contribs) (Backlink to the MapGuide page)
Jump to navigation Jump to search

These instructions are for building and installing the latest MapGuide Open Source on Fedora Core 4. All of the following are done with root privileges.

Prerequisite software

Install the Java Development Kit: The JDK is available from http://java.sun.com/javase/downloads/index.jsp (the plain package is fine, no need for NetBeans or Java EE).

Install GCC 4.0.2 available from http://gcc.gnu.org/. The version is important here as later versions do not work.

Install subversion available from http://subversion.tigris.org/. For this, make sure to run "./configure --with-ssl" because the osgeo subversion vaults use https. (I use version 1.3.2 because I don't need to install the Apache Runtime in order to get things to compile.)

Install MapGuide Linux, Apache, Tomcat package

Download mapguideaptinstaller-1.0.2.tar.gz from https://mapguide.osgeo.org/downloads.html.

In a shell window execute the following commands in the directory where you downloaded the apt installer file:

tar zxf mapguideaptinstaller-1.0.2.tar.gz

cd LinuxApt

tar zxf apache-tomcat-5.5.12.tar.gz

tar zxf httpd-2.0.55.tar.gz

tar zxf jakarta-tomcat-connectors-1.2.15-src.tar.gz

tar zxf mod_fastcgi.tar.gz

tar zxf php-5.0.5.tar.gz

./build_apt.sh (wait a long time)

Install FDO 3.2

Details about the following can be found in the subversion links on the http://fdocore.osgeo.org, http://fdosdf.osgeo.org and http://fdoshp.osgeo.org web pages. And in the OpenSourceBuild__README.txt file that is checked out when subversion is used to get the fdocore trunk.

In a shell window execute the following commands:

svn checkout https://fdocore.osgeo.org/svn/fdocore/trunk fdocore --username guest

(Press Enter without password when asked for password)

cd fdocore

svn checkout https://fdosdf.osgeo.org/svn/fdosdf/trunk/Providers Providers --username guest

svn checkout https://fdoshp.osgeo.org/svn/fdoshp/trunk/Providers Providers --username guest

(similarly for any other providers that you are interested in)

cd ..

export FDO=<directory to fdocore>/Fdo

export FDOUTILITIES=<directory to fdocore>/Utilities

export FDOTHIRDPARTY=<directory to fdocore>/ThirdParty

./build_thirdParty.sh

./build_linux.sh

(You will probably get a build error in one of the unit test files. I can't remember exactly what file it is, but go into it and delete the lines with the non-ascii characters from the file. Search for "ascii" in the file. Then run ./build_linux.sh again. This problem only occurs on Fedora Core.)


Install MapGuide

Details about the following can be found in https://mapguide.osgeo.org/docs/BuildConfigureMgOpenSourceOnLinux.pdf (the version numbers are wrong, but the process is still the same).

In a shell window execute the following commands:

svn checkout https://mapguide.osgeo.org/svn/mapguide/trunk/MgDev mapguide --username guest

(Press Enter without password when asked for password)

cd mapguide

./build_oem.sh (wait a long time)

aclocal

libtoolize --force

automake --add-missing --copy

autoconf

./configure --enable-optimized

make

make install

Run the MapGuide web tier and server

Execute the following commands in a shell window:

cd /usr/local/mapguideopensource/webtierextensions/apache2/bin

./httpd

cd /usr/local/mapguideopensource/server/bin

./mgserver.sh

If you open up a browser, you should be able to open http://localhost:8008/mapguide/mapagent/index.html and see the server test web pages.