<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.osgeo.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Wiki-Raulintosh</id>
	<title>OSGeo - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.osgeo.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Wiki-Raulintosh"/>
	<link rel="alternate" type="text/html" href="https://wiki.osgeo.org/wiki/Special:Contributions/Wiki-Raulintosh"/>
	<updated>2026-04-12T23:53:43Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=Building_MapGuide_on_CentOS_5&amp;diff=42104</id>
		<title>Building MapGuide on CentOS 5</title>
		<link rel="alternate" type="text/html" href="https://wiki.osgeo.org/w/index.php?title=Building_MapGuide_on_CentOS_5&amp;diff=42104"/>
		<updated>2009-10-22T18:23:21Z</updated>

		<summary type="html">&lt;p&gt;Wiki-Raulintosh: To complete the dependencies betwen packages and instructions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Prerequisite==&lt;br /&gt;
===User account===&lt;br /&gt;
If you have just installed the OS, be sure to create a user account for yourself from root:&lt;br /&gt;
 adduser ''&amp;lt;username&amp;gt;''&lt;br /&gt;
 passwd ''&amp;lt;username&amp;gt;''&lt;br /&gt;
Add yourself to the sudoer list from root:&lt;br /&gt;
 visudo&lt;br /&gt;
Add your entry after root &amp;lt;code&amp;gt;&amp;quot;''&amp;lt;username&amp;gt;'' ALL=(ALL)  ALL&amp;quot;&amp;lt;/code&amp;gt;, at about line 77. The program uses commands from &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vim&amp;lt;/code&amp;gt;, so you need to insert text using &amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt;, then after inserting text, you need to hit the ESC key, then&amp;lt;code&amp;gt;:wq&amp;lt;/code&amp;gt; (write, quit).&lt;br /&gt;
Logout of root, and log in as yourself.&lt;br /&gt;
&lt;br /&gt;
===System development tools and libraries===&lt;br /&gt;
Install system development tools (as root via su):&lt;br /&gt;
 yum install gcc* gd-* &lt;br /&gt;
 yum install automake* bison* flex doxygen expat* swig &lt;br /&gt;
 yum install libtool* libjpeg-devel libpng libpng-devel alsa-lib-devel libxml2 libxml2-devel&lt;br /&gt;
 yum install openssl openssl-devel &lt;br /&gt;
 yum install curl curl-devel&lt;br /&gt;
 yum install libxslt libxslt-devel&lt;br /&gt;
 yum install subversion&lt;br /&gt;
&lt;br /&gt;
===Sun Java===&lt;br /&gt;
A Sun Java Development Kit is required.  The plain package is fine, no need for NetBeans or Java EE. You can download the JDK from http://java.sun.com/javase/downloads/index.jsp. Detailed installation instructions can be found at http://wiki.centos.org/HowTos/JavaOnCentOS (follow the instructions for &amp;quot;Sun JDK 1.6&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Check &amp;quot;&amp;lt;code&amp;gt;java -version&amp;lt;/code&amp;gt;&amp;quot; and you should see &amp;quot;Java(TM)&amp;quot; somewhere in the output.&lt;br /&gt;
&lt;br /&gt;
JAVA_HOME does not always gets set during this installation. It is however required to compile the SWIG based JavaAPI.&lt;br /&gt;
&lt;br /&gt;
===Optional: PostgreSQL and PostGIS===&lt;br /&gt;
Current versions of PostgreSQL are maintained at http://yum.pgsqlrpms.org/. An overview for beginners can be found here: http://www.postgresonline.com/journal/index.php?/archives/45-An-Almost-Idiots-Guide-to-PostgreSQL-YUM.html&lt;br /&gt;
&lt;br /&gt;
To use the repository, first block all others by editing the repos file. As root, edit the file (e.g.):&lt;br /&gt;
 vim /etc/yum.repos.d/CentOS-Base.repo&amp;lt;/code&amp;gt;&lt;br /&gt;
add to the bottom of the file:&lt;br /&gt;
 exclude=postgresql*&lt;br /&gt;
&lt;br /&gt;
Choose a version of PostgreSQL from http://yum.pgsqlrpms.org/reporpms/repoview/pgdg-centos.html, the current version 8.3.x is recommended&lt;br /&gt;
&lt;br /&gt;
==Download source==&lt;br /&gt;
Download the source code for FDO-3.3.1 and MapGuide-2.0.2:&lt;br /&gt;
 svn checkout http://svn.osgeo.org/fdo/tags/3.3.1/ fdo-3.3.1&lt;br /&gt;
&lt;br /&gt;
 svn checkout http://svn.osgeo.org/mapguide/tags/MAPGUIDE2.0.2/ mapguide-2.0.2&lt;br /&gt;
&lt;br /&gt;
==Build and Install==&lt;br /&gt;
===FDO===&lt;br /&gt;
Through su or as root:&lt;br /&gt;
 mkdir /usr/local/fdo-3.3.0&lt;br /&gt;
 cd fdo-3.3.1&lt;br /&gt;
 source ./setenvironment.sh&lt;br /&gt;
&lt;br /&gt;
 nohup ./build_thirdparty.sh 2&amp;gt;&amp;amp;1 | tee build_thirdparty.log&lt;br /&gt;
&lt;br /&gt;
 nohup ./build_linux.sh 2&amp;gt;&amp;amp;1 | tee build_linux.log&lt;br /&gt;
&lt;br /&gt;
===Apache / PHP === &lt;br /&gt;
&lt;br /&gt;
Rev 3853&lt;br /&gt;
&lt;br /&gt;
Through su or as root:&lt;br /&gt;
 mkdir /usr/local/mapguideopensource&lt;br /&gt;
 cd mapguide-2.0.2/Oem/LinuxApt&lt;br /&gt;
 find . -name &amp;quot;*.gz&amp;quot; -exec tar xzf {} \;&lt;br /&gt;
&lt;br /&gt;
 nohup ./build_apt.sh 2&amp;gt;&amp;amp;1 | tee ../../build_apt.log&lt;br /&gt;
&lt;br /&gt;
Later in the webtier the ApacheAgent will not compile if httpd has not been unpacked/built.&lt;br /&gt;
&lt;br /&gt;
There is a conflict with the apr package. &lt;br /&gt;
Installing apr-devel and a &amp;quot;make clean&amp;quot; in the apache directory seemed to have helped ...&lt;br /&gt;
&lt;br /&gt;
The apache2/conf/mapguide.conf installed for the apache webserver does not enable the mapguide plugin or the mapagent.fcgi handler.&lt;br /&gt;
This needs editing in line 8 and 30.&lt;br /&gt;
&lt;br /&gt;
On Centos52 the mod_mgmapagent.so and siblings does not get installed into the apache directory in the installation.&lt;br /&gt;
These can be copied manually from the Apache Agent subdir MgDev/web/src/ApacheAgent/.libs to&lt;br /&gt;
/usr/local/mapguideopensource/webserverextensions/apache2/modules until this is fixed.&lt;br /&gt;
&lt;br /&gt;
== PHP ==&lt;br /&gt;
&lt;br /&gt;
The PHP build fails with a missing include of evp.h if openssl-devel has not been installed!&lt;br /&gt;
&lt;br /&gt;
===OEM===&lt;br /&gt;
Through su or as root:&lt;br /&gt;
 cd mapguide-2.0.2/&lt;br /&gt;
 nohup ./build_oem.sh 2&amp;gt;&amp;amp;1 | tee build_oem.log&lt;br /&gt;
&lt;br /&gt;
===MapGuide===&lt;br /&gt;
Through su or as root:&lt;br /&gt;
 aclocal&lt;br /&gt;
 libtoolize --force&lt;br /&gt;
 automake --add-missing --copy&lt;br /&gt;
 autoconf&lt;br /&gt;
 ./configure --enable-optimized&lt;br /&gt;
&lt;br /&gt;
 nohup make 2&amp;gt;&amp;amp;1 | tee make_mapguide.log&lt;br /&gt;
&lt;br /&gt;
 nohup make install 2&amp;gt;&amp;amp;1 | tee install_mapguide.log&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Final Steps===&lt;br /&gt;
&lt;br /&gt;
the apache module needed to be deployed by hand&lt;br /&gt;
&lt;br /&gt;
1. the webconfig.ini has not been deployed in www&lt;br /&gt;
2. the webtier tests in mapagent dir were missing&lt;br /&gt;
3. the mapviewerphp directory was empty and needed filling to view a map&lt;br /&gt;
4. a remote connection with autodesk studio 2008 version 2.0 failed to connect&lt;br /&gt;
5. the resource library is empty and no map can be displayed&lt;br /&gt;
6. fixing all the above still only produced empty tiles....&lt;br /&gt;
next day&lt;/div&gt;</summary>
		<author><name>Wiki-Raulintosh</name></author>
	</entry>
</feed>