<?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-Helmi03</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-Helmi03"/>
	<link rel="alternate" type="text/html" href="https://wiki.osgeo.org/wiki/Special:Contributions/Wiki-Helmi03"/>
	<updated>2026-04-13T12:48:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=Building_MapGuide_on_Ubuntu_8.04&amp;diff=27017</id>
		<title>Building MapGuide on Ubuntu 8.04</title>
		<link rel="alternate" type="text/html" href="https://wiki.osgeo.org/w/index.php?title=Building_MapGuide_on_Ubuntu_8.04&amp;diff=27017"/>
		<updated>2008-07-03T06:51:56Z</updated>

		<summary type="html">&lt;p&gt;Wiki-Helmi03: New page: Below are instructions that will aid a user with installing FDO 3.3.1 and MapGuide Open Source 2.0.1 from SVN on Ubuntu 8.04 (Hardy Heron).  It is based on previous instructions, lots of c...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are instructions that will aid a user with installing FDO 3.3.1 and MapGuide Open Source 2.0.1 from SVN on Ubuntu 8.04 (Hardy Heron).  It is based on previous instructions, lots of credit to their authors!&lt;br /&gt;
&lt;br /&gt;
==NOTES==&lt;br /&gt;
&lt;br /&gt;
The default directory used in these instructions is called /home/administrator.  This assumes that you create your primary user account with the name &amp;quot;administrator&amp;quot;.  If you do not, mentally adjust where necessary.&lt;br /&gt;
&lt;br /&gt;
You may want to consider using a client like PuTTY to access your server's terminal via openssh-server from a different computer.  This really helps with copying and pasting.   If so, either ensure that you install the OpenSSH server during your basic install, or add &amp;quot;openssh-server&amp;quot; to the list of packages below.&lt;br /&gt;
&lt;br /&gt;
Any time that you run a task and pipe its output to a logfile, make sure that you look at the end of the logfile when you're done to make sure that it completed successfully.  If it didn't then you have the logfile to post an error report from...  Here's an example of how to do this:&lt;br /&gt;
&lt;br /&gt;
 tail -n 30 mylogfile.log&lt;br /&gt;
&lt;br /&gt;
Compiled successfully on 32 bit machine. When compiled on my 64 bit machine, got error 'CPU you selected does not support x86-64 instruction set'&lt;br /&gt;
&lt;br /&gt;
==BASIC SETUP==&lt;br /&gt;
&lt;br /&gt;
Install a basic Ubuntu 8.04 (Hardy Heron).  Once this is complete, you will have to add some extra packages to compile MapGuide.  Make sure that you get all of these packages; the line is really long:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install build-essential bison flex automake1.7 automake1.9 libtool doxygen subversion libjpeg62-dev libpng12-dev libfreetype6-dev libexpat1-dev libxalan110-dev libxslt1-dev expat libcurl4-openssl-dev libasound2-Dev python2.5-dev sun-java6-jdk gcc-4.1 g++-4.1&lt;br /&gt;
&lt;br /&gt;
If Java fails to install, you may need to edit /etc/apt/sources.list to uncomment the multiverse repository lines and then try installing it again.&lt;br /&gt;
&lt;br /&gt;
To avoid &amp;quot;bad fd number&amp;quot; errors, type the following in the terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo dpkg-reconfigure dash&lt;br /&gt;
&lt;br /&gt;
and choose No at the prompt.  Be aware that this changes your default /bin/sh from dash back to bash.&lt;br /&gt;
&lt;br /&gt;
Set the SUN Java to be the default Java installation:&lt;br /&gt;
&lt;br /&gt;
 sudo update-java-alternatives -s java-1.6.0-sun&lt;br /&gt;
&lt;br /&gt;
Edit /etc/jvm, moving &amp;quot;/usr/lib/jvm/java-1.6.0-sun&amp;quot; to the top of the list&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/jvm&lt;br /&gt;
&lt;br /&gt;
Edit /etc/environment so that services will know where to look for Java&lt;br /&gt;
&lt;br /&gt;
 sudo nano /etc/environment&lt;br /&gt;
&lt;br /&gt;
''(Add the following line)''&lt;br /&gt;
&lt;br /&gt;
 JAVA_HOME=&amp;quot;/usr/lib/jvm/java-1.6.0-sun&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note: I have problem compile with gcc-4.2 and g++-4.2. What I do is replace link /usr/bin/gcc and /usr/bin/g++ to version 4.1.&lt;br /&gt;
&lt;br /&gt;
Log off and then log back on so that these settings take effect.  Alternatively, export JAVA_HOME in your current session.&lt;br /&gt;
&lt;br /&gt;
==FDO INSTALL==&lt;br /&gt;
&lt;br /&gt;
In terminal type the following:&lt;br /&gt;
&lt;br /&gt;
''(be prepared to wait a long time for this command to complete, the test data takes a while to download)&lt;br /&gt;
 svn checkout http://svn.osgeo.org/fdo/tags/3.3.1/ fdo-3.3.1&lt;br /&gt;
&lt;br /&gt;
''(type in your password after the following command if prompted. Note that this fdo-3.3.0, not fdo-3.3.1)''&lt;br /&gt;
 sudo mkdir /usr/local/fdo-3.3.0&lt;br /&gt;
&lt;br /&gt;
''(if you are not logged in as administrator, you change the userid below!)''&lt;br /&gt;
 sudo chown administrator /usr/local/fdo-3.3.0&lt;br /&gt;
&lt;br /&gt;
''(when compile, I got error &amp;quot;occi.h: No such file or directory&amp;quot;. This is for provider KingOracle. Since I don't need it anyway, I just remove folder /home/administrator/fdo-3.3.1/Providers/KingOracle)&lt;br /&gt;
&lt;br /&gt;
 cd fdo-3.3.1&lt;br /&gt;
&lt;br /&gt;
 source ./setenvironment.sh&lt;br /&gt;
&lt;br /&gt;
In terminal, type the following to run the builds.  Note, there will be no output from either command until completion as it is all being spooled to nohup.out.  You can log into another terminal session and tail this file if you start getting antsy :-)&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 INSTALL==&lt;br /&gt;
&lt;br /&gt;
In Terminal type the following:&lt;br /&gt;
&lt;br /&gt;
 cd ~&lt;br /&gt;
&lt;br /&gt;
''(you should now be in /home/administrator, or whatever your $HOME is)''&lt;br /&gt;
&lt;br /&gt;
 svn checkout http://svn.osgeo.org/mapguide/tags/MAPGUIDE2.0.1/ mapguide-2.0.1&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir /usr/local/mapguideopensource&lt;br /&gt;
&lt;br /&gt;
''(replace administrator with your userid if necessary)''&lt;br /&gt;
&lt;br /&gt;
 sudo chown administrator /usr/local/mapguideopensource&lt;br /&gt;
&lt;br /&gt;
 cd mapguide-2.0.1/Oem/LinuxApt&lt;br /&gt;
&lt;br /&gt;
''(careful when copying and pasting this line, the - got changed into . for me)''&lt;br /&gt;
&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;
==BUILD OEM==&lt;br /&gt;
&lt;br /&gt;
Perform the following:&lt;br /&gt;
&lt;br /&gt;
 cd ~/mapguide-2.0.1/&lt;br /&gt;
&lt;br /&gt;
 nohup ./build_oem.sh 2&amp;gt;&amp;amp;1 | tee build_oem.log&lt;br /&gt;
&lt;br /&gt;
==BUILD MAPGUIDE==&lt;br /&gt;
&lt;br /&gt;
Go for the gusto:&lt;br /&gt;
&lt;br /&gt;
 aclocal&lt;br /&gt;
 libtoolize --force&lt;br /&gt;
 automake --add-missing --copy&lt;br /&gt;
 autoconf&lt;br /&gt;
&lt;br /&gt;
 ./configure --enable-optimized&lt;br /&gt;
&lt;br /&gt;
''(If you get error &amp;quot;missing liblib_json.so&amp;quot;, then apply patch from http://trac.osgeo.org/mapguide/ticket/347)&lt;br /&gt;
&lt;br /&gt;
 nohup make 2&amp;gt;&amp;amp;1 | 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;
If you want to use webstudio, copy the files to the webserverextension folder:&lt;br /&gt;
&lt;br /&gt;
 cp -fpR /home/administrator/mapguide-2.0.1/Web/src/webstudio /usr/local/mapguideopensource/webserverextensions/www/webstudio&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== STARTUP OPTIONS ==&lt;br /&gt;
&lt;br /&gt;
While you're testing, it can be convenient to run services interactively, but eventually you'll want them to shut down / restart when you the computer is rebooted.  This section gives you both options.&lt;br /&gt;
&lt;br /&gt;
=== START SERVICES MANUALLY ===&lt;br /&gt;
&lt;br /&gt;
Start Apache&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/local/mapguideopensource/webserverextensions/apache2/bin/apachectl restart&lt;br /&gt;
&lt;br /&gt;
Stop Apache&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/local/mapguideopensource/webserverextensions/apache2/bin/apachectl stop&lt;br /&gt;
&lt;br /&gt;
Start MapGuide&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/local/mapguideopensource/server/bin/mgserverd.sh&lt;br /&gt;
&lt;br /&gt;
Stop MapGuide&lt;br /&gt;
&lt;br /&gt;
 sudo pkill -f -u root &amp;quot;mgserver daemon&amp;quot;&lt;/div&gt;</summary>
		<author><name>Wiki-Helmi03</name></author>
	</entry>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=Building_MapGuide_quick_starts_guides&amp;diff=27016</id>
		<title>Building MapGuide quick starts guides</title>
		<link rel="alternate" type="text/html" href="https://wiki.osgeo.org/w/index.php?title=Building_MapGuide_quick_starts_guides&amp;diff=27016"/>
		<updated>2008-07-03T06:21:02Z</updated>

		<summary type="html">&lt;p&gt;Wiki-Helmi03: MapGuide on Ubuntu 8.04&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Quick starts that describe how to build and install [[MapGuide Open Source]] from subversion.  Some of these may not be up-to-date; please feel free to modify them yourself if you are installing a newer version of MapGuide than what is posted.&lt;br /&gt;
&lt;br /&gt;
[[Building MapGuide on Windows]]&lt;br /&gt;
&lt;br /&gt;
[[Building MapGuide on Fedora Core 4]]&lt;br /&gt;
&lt;br /&gt;
[[Building MapGuide on Fedora Core 6]]&lt;br /&gt;
&lt;br /&gt;
[[Building MapGuide on Red Hat Linux 3]]&lt;br /&gt;
&lt;br /&gt;
[[Building MapGuide on Debian Sarge]] (unsuccessful)&lt;br /&gt;
&lt;br /&gt;
[[Building Mapguide on Ubuntu 6.06 Server]]&lt;br /&gt;
&lt;br /&gt;
[[Building Mapguide on Ubuntu 7.04 Server]] -&amp;gt; This is for MapGuide 1.2 and it also works on Debian Etch&lt;br /&gt;
&lt;br /&gt;
[[Building Mapguide on Ubuntu 7.10 Server]] -&amp;gt; This is for MapGuide 2.0 (work in progress)&lt;br /&gt;
&lt;br /&gt;
[[Building MapGuide on Ubuntu 8.04]] -&amp;gt; MapGuide 2.0.1&lt;/div&gt;</summary>
		<author><name>Wiki-Helmi03</name></author>
	</entry>
</feed>