<?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-Mwtoews</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-Mwtoews"/>
	<link rel="alternate" type="text/html" href="https://wiki.osgeo.org/wiki/Special:Contributions/Wiki-Mwtoews"/>
	<updated>2026-05-26T15:56:10Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=Paris_Code_Sprint_2016_:_PostGIS_Agenda&amp;diff=96099</id>
		<title>Paris Code Sprint 2016 : PostGIS Agenda</title>
		<link rel="alternate" type="text/html" href="https://wiki.osgeo.org/w/index.php?title=Paris_Code_Sprint_2016_:_PostGIS_Agenda&amp;diff=96099"/>
		<updated>2016-01-26T20:51:57Z</updated>

		<summary type="html">&lt;p&gt;Wiki-Mwtoews: there are several open pull requests on GitHub waiting that should be discussed&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Discussion and group review topics for the [[Paris Code Sprint 2016]].&lt;br /&gt;
&lt;br /&gt;
== Discussion ==&lt;br /&gt;
&lt;br /&gt;
* Clustering functions: Aggregate or Window?&lt;br /&gt;
** What naming convention&lt;br /&gt;
** What to do with the existing aggregate functions&lt;br /&gt;
* [http://www.postgresql.org/message-id/20178.1423598435@sss.pgh.pa.us Expanded object headers], introduction and testing&lt;br /&gt;
** How they work&lt;br /&gt;
** Potential advantages, disadvantages&lt;br /&gt;
** Discussion on clean implementation possibilities&lt;br /&gt;
** Testing and benchmarks, is it worth it?&lt;br /&gt;
* Alternate storage formats, beyond GSERIALIZED&lt;br /&gt;
** Reasoning&lt;br /&gt;
** How to add (version flags?)&lt;br /&gt;
** Multiple co-existing formats?&lt;br /&gt;
* Breaking raster out as postgis_raster extension&lt;br /&gt;
** Implications / difficulties&lt;br /&gt;
* GEOS improvements that would help PostGIS&lt;br /&gt;
* Using FDW with PostGIS&lt;br /&gt;
** Functions pushdown&lt;br /&gt;
** Current limitations&lt;br /&gt;
* PostgreSQL improvements that would help PostGIS&lt;br /&gt;
** Parallel query, review experiments, plan and execute more&lt;br /&gt;
** Feed back parallel query results to pgsql-hackers&lt;br /&gt;
* [https://github.com/postgis/postgis/pulls Open pull requests from GitHub]&lt;br /&gt;
** Merge, modify, or reject&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
* Benchmarking of expanded object headers test branch&lt;br /&gt;
* Benchmarking of parallel query and parallel aggregate work from pgsql-hackers&lt;br /&gt;
&lt;br /&gt;
* BRIN indexes implementation for PostGIS geometries&lt;br /&gt;
&lt;br /&gt;
== Possible PostGIS function improvement and addition ==&lt;br /&gt;
&lt;br /&gt;
* improvement&lt;br /&gt;
** st_pointN -&amp;gt; make a negative input count backward&lt;br /&gt;
** st_setPoint -&amp;gt; make a negative input count backward&lt;br /&gt;
** st_asText -&amp;gt; optionnal arg to limit digit number &lt;br /&gt;
** st_centroid -&amp;gt; work on circular string (simply dump points, then classical centroid)&lt;br /&gt;
** st_exteriorRing -&amp;gt; make it work on multipolygon, returns a collection&lt;br /&gt;
** st_makeline -&amp;gt; make it work on multipoints&lt;br /&gt;
** st_scale -&amp;gt; optionnal argument to define the center of scaling (allows to scale &amp;quot;in place&amp;quot;)&lt;br /&gt;
** st_split -&amp;gt; allow splitting (multi)line by (multi)point&lt;br /&gt;
* slight addition&lt;br /&gt;
** st_angle(P1,P2,P3)&lt;br /&gt;
** st_MakeRing((multi) linestrings and/or points&lt;br /&gt;
** st_DumpLines -&amp;gt; dump everything to line (rings in poly, lines in multilines, etc. )&lt;br /&gt;
** st_DumpSegments -&amp;gt; dump segments (in the mathematical sense), that is every consecutive pairs of points in lines&lt;br /&gt;
* big addition&lt;br /&gt;
** generate grid (regular and hex)&lt;br /&gt;
** st_snapToLine -&amp;gt; st_snap = snap vertex to vertex. This one = snap vertex to vertex or edge.&lt;br /&gt;
** st_splitLineByPoint(line,point,tolerance) -&amp;gt; using curv absc, the only current way to not be sensible to precision issue (st_split doesnt work)&lt;br /&gt;
** st_VariableBuffer(geomM) -&amp;gt; buffer on geometry, the radius is given by M of each vertex, linear transition between. A lots of uses&lt;br /&gt;
** St_FindCurve(geom,radius_range,min_number_of_support_points,tolerance) -&amp;gt; in a classical geometry, find the point describing arcs&lt;br /&gt;
** St_MakeArc(P1,P2,centre) and St_MakeArc(P1,P2,radius)  -&amp;gt; create arcs (_not_ using 3 points on arc!)&lt;br /&gt;
** St_OrientedBBox(geom) -&amp;gt; returns the oriented bbox of the geom (returns a geom and an angle)&lt;/div&gt;</summary>
		<author><name>Wiki-Mwtoews</name></author>
	</entry>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=OSGeo_Binary_Distribution&amp;diff=47832</id>
		<title>OSGeo Binary Distribution</title>
		<link rel="alternate" type="text/html" href="https://wiki.osgeo.org/w/index.php?title=OSGeo_Binary_Distribution&amp;diff=47832"/>
		<updated>2010-06-03T15:09:36Z</updated>

		<summary type="html">&lt;p&gt;Wiki-Mwtoews: copyedit headers -- make hrule headers more obvious&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This provides the status of current and historical binary packaging of OSGeo software, with the ultimate goal of OSGeo &amp;quot;branded and certified&amp;quot; binary distributions of open source geospatial software for Windows, Linux and possibly MacOS X and Solaris.&lt;br /&gt;
&lt;br /&gt;
== Objectives ==&lt;br /&gt;
&lt;br /&gt;
* Offer a painless user experience installing and getting started with OSGeo products.&lt;br /&gt;
* Support major operating systems.  In order of precedence that likely means Windows, Linux (Intel32), MacOS X and Solaris (Sparc).&lt;br /&gt;
* Ensure that all components are inter-compatible avoiding version incompatibility hell.&lt;br /&gt;
* Allow progressive installation, with packages pulled over the internet as requested.  So the person can install a few packages without having to download everything, and so they can go back and add more packages later.&lt;br /&gt;
* Provide an easy to use GUI installer.&lt;br /&gt;
* Be relatively distribution/version agnostic - on linux we hope the same binaries will work on Debian, Fedora Core, Suse, Ubuntu, etc.  On windows and MacOS X we hope the binaries would work across a variety of relatively recent OS versions.&lt;br /&gt;
* Include at least all the OSGeo project software as packages, and dependencies of those packages.&lt;br /&gt;
* Suitable for desktop and web service folks.&lt;br /&gt;
* Provide a level of quality control&lt;br /&gt;
* Simplify the process for projects to update and maintain the various distributions&lt;br /&gt;
* Open channels of communication between packagers and application developers.&lt;br /&gt;
&lt;br /&gt;
== Microsoft Windows ==&lt;br /&gt;
=== OSGeo4W ===&lt;br /&gt;
[http://trac.osgeo.org/osgeo4w/ OSGeo4W] is a windows based stack of GeoFOSS which is based upon cygwin.&lt;br /&gt;
&lt;br /&gt;
'''Goal''': Ease of installation of the whole GeoFOSS stack in windows.&lt;br /&gt;
&lt;br /&gt;
'''Status''': Aug '08: Actively maintained by community, Works well&lt;br /&gt;
&lt;br /&gt;
* Pros:&lt;br /&gt;
** Has already packaged many of the key GeoFOSS applications.&lt;br /&gt;
** Likely to release first major release at FOSS4G 2008, 29 Sep 2008.&lt;br /&gt;
** Has strong developer community.&lt;br /&gt;
&lt;br /&gt;
* Cons:&lt;br /&gt;
** Needs installation&lt;br /&gt;
** Needs internet connection for installation&lt;br /&gt;
&lt;br /&gt;
=== PortableGIS ===&lt;br /&gt;
[http://www.archaeogeek.com/blog/portable-gis/ PortableGIS] is a collection of GeoFOSS applications that run from a USB stick.&lt;br /&gt;
&lt;br /&gt;
'''Goal''': Have the most important applications always with you.&lt;br /&gt;
&lt;br /&gt;
'''Status''': Actively maintained by one person, (Jo Cook)&lt;br /&gt;
&lt;br /&gt;
* Pro&lt;br /&gt;
** No installation required, just run the applications&lt;br /&gt;
&lt;br /&gt;
* Con&lt;br /&gt;
** Doesn't work right from CD at the moment&lt;br /&gt;
** Applications need clean-up (Eg. Java is bundled more than once)&lt;br /&gt;
** Only one maintainer&lt;br /&gt;
** Project development infrastructure not set up yet.&lt;br /&gt;
** Would benefit by alignment with similar projects.&lt;br /&gt;
** PortableGIS currently needs to be run from a writable medium (like and USB stick), it won't work on a read-only medium like a CD.&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
&lt;br /&gt;
Unlike the Debian-GIS SIG, which already has mailing list / code repository infrastructure, the RPM-using community does not have such infrastructure and would benefit from hosting by OSGeo.&lt;br /&gt;
&lt;br /&gt;
=== GIS Virtual Machine ===&lt;br /&gt;
http://gisvm.com/&lt;br /&gt;
&lt;br /&gt;
* Has a stable Virtual Machine, packaged in November 2008, based upon Ubuntu 8.10.&lt;br /&gt;
* A new version is being developed for FOSS4G in October 2009.&lt;br /&gt;
&lt;br /&gt;
=== Live CD\DVD ===&lt;br /&gt;
See the [[Live GIS Disc]]&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
* [http://pkg-grass.alioth.debian.org/cgi-bin/wiki.pl DebianGIS] is about improving Debian to make it the best distribution for Geographical Information Systems applications and users. A good deal of GIS related softwares and libraries (e.g. GRASS) are already present in Debian. We have currently an up-to-date GRASS package in main and many other packages.&lt;br /&gt;
&lt;br /&gt;
=== Ubuntu ===&lt;br /&gt;
* [https://wiki.ubuntu.com/UbuntuGIS Ubuntu GIS]&lt;br /&gt;
&lt;br /&gt;
=== GeoLivre ===&lt;br /&gt;
* [http://www.geolivre.org.br/modules/mydownloads/ Geolivre Linux]&lt;br /&gt;
&lt;br /&gt;
=== Gentoo ===&lt;br /&gt;
* [http://gentoo-gis.sourceforge.net/ Gentoo]&lt;br /&gt;
&lt;br /&gt;
=== Mandriva ===&lt;br /&gt;
* [http://club.mandriva.com/xwiki/bin/view/rpms/Category/Sciences/Geosciences Mandriva] (not really a team but all relevant RPMs there and maintained)&lt;br /&gt;
* [http://wiki.osgeo.org/index.php/FOSS4G_Toolkit_for_Mandriva_2008 Mandriva 2008 RPM] (Osaka City University)&lt;br /&gt;
* [http://wgrass.media.osaka-cu.ac.jp/foss4g/ Mandriva CD ISO Image] -- maintained by Osaka City University FOSS4G Team&lt;br /&gt;
&lt;br /&gt;
RPM-based distributions, such as Fedora Linux and SuSE Linux, do not have a dedicated GIS teams, but there are several parties maintaining independent RPM archives that could be persuaded to band their efforts together under the aegis of the foundation:&lt;br /&gt;
=== Fedora ===&lt;br /&gt;
* Fedora Extra 6 ([http://download.fedora.redhat.com/pub/fedora/linux/extras/6/SRPMS source RPMS] and [http://download.fedora.redhat.com/pub/fedora/linux/extras/6/i386 i386 binaries RPMS]) contains a few GIS packages like GDAL, geos and proj &lt;br /&gt;
* Fedora 7 ([http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Everything/source/SRPMS source RPMs] and [http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Everything/i386/os/Fedora i386 binaries RPMs]) contains a few GIS packages like GDAL, geos, proj and mapserver&lt;br /&gt;
* [http://mappinghacks.com/rpm/ Mapping Hacks Fedora RPMs] -- maintained by SchuylerErle&lt;br /&gt;
* [ftp://intevation.de/freegis/fedora/ intevation.de Fedora RPMs]&lt;br /&gt;
* [http://postgis.refractions.net/rpms/ PostGIS RPMs for Fedora] from [http://www.refractions.net/ Refractions Research]&lt;br /&gt;
* [http://www.gdf-hannover.de/software Mandriva and SuSe RPMs] -- maintained by GDF Hannover&lt;br /&gt;
&lt;br /&gt;
=== RHEL/CentOS/Scientific ===&lt;br /&gt;
See [[Enterprise Linux GIS]]&lt;br /&gt;
&lt;br /&gt;
== Old Technical Notes ==&lt;br /&gt;
* I think building on the existing [[http://www.maptools.org/fgs/index.phtml?page=home.html FGS]] infrastructure Linux (and possibly other Unix platforms) is attractive.  See [[FGSDevNotes]].&lt;br /&gt;
* I think the existing MS4W package could potentially be a base for windows distribution.&lt;br /&gt;
* William Kyngesburye has done a great deal of work producing MacOS X framework-style packages of GDAL, MapServer, GRASS etc for MacOS X ( http://www.kyngchaos.com/ ).&lt;br /&gt;
* GDF Hannover has build RPMs for various Linux distros: http://www.gdf-hannover.de/software This could be a starting point&lt;br /&gt;
* Osaka City University has built RPMs for Mandriva Linux distros: http://wgrass.media.osaka-cu.ac.jp/foss4g/downloads This could be a starting point too&lt;br /&gt;
* Stephan Holl/GDF has written a GUI installer for QGIS0.8 with winGRASS-native integrated (MS-Windows).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  References ==&lt;br /&gt;
* [[Binary Package Listing]] - an attempt to make a single page pointing to all the currently available binary (and source) packages for each project&lt;br /&gt;
* [[Binary Stack Platforms]] - a list of a few platforms where stacks are already (or could) be built upon&lt;br /&gt;
&lt;br /&gt;
[[Category: Software Stack]]&lt;br /&gt;
[[Category: Live-demo]]&lt;/div&gt;</summary>
		<author><name>Wiki-Mwtoews</name></author>
	</entry>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=Building_MapGuide_on_Ubuntu_8.04&amp;diff=31404</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=31404"/>
		<updated>2008-10-26T19:40:29Z</updated>

		<summary type="html">&lt;p&gt;Wiki-Mwtoews: CXX&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;
then either log off and back on again, or alternatively:&lt;br /&gt;
 source /etc/environment&lt;br /&gt;
&lt;br /&gt;
The best way to compile MapGuide is using GCC 4.1 (this is older than the &amp;quot;current&amp;quot; version). To enable this, type the following commands into each build environment:&lt;br /&gt;
 CC=gcc-4.1&lt;br /&gt;
 export CC&lt;br /&gt;
 CXX=g++-4.1&lt;br /&gt;
 export CXX&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 Heron:&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 | 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;
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;
== 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-Mwtoews</name></author>
	</entry>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=Building_MapGuide_on_Ubuntu_8.04&amp;diff=31400</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=31400"/>
		<updated>2008-10-26T01:57:06Z</updated>

		<summary type="html">&lt;p&gt;Wiki-Mwtoews: edit method to use GCC 4.1&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;
then either log off and back on again, or alternatively:&lt;br /&gt;
 source /etc/environment&lt;br /&gt;
&lt;br /&gt;
The best way to compile MapGuide is using GCC 4.1 (this is older than the &amp;quot;current&amp;quot; version). To enable this, type the following commands into each build environment:&lt;br /&gt;
 CC=gcc-4.1&lt;br /&gt;
 export CC&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 Heron:&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 | 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;
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;
== 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-Mwtoews</name></author>
	</entry>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=Building_MapGuide_on_CentOS_5&amp;diff=30988</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=30988"/>
		<updated>2008-10-15T22:35:34Z</updated>

		<summary type="html">&lt;p&gt;Wiki-Mwtoews: more dependancies&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*&lt;br /&gt;
 yum install expat* libtool* automake* bison* flex doxygen libjpeg-devel libpng libpng-devel alsa-lib-devel swig gd-*&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;
===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;
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;
===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;/div&gt;</summary>
		<author><name>Wiki-Mwtoews</name></author>
	</entry>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=Building_MapGuide_on_CentOS_5&amp;diff=30929</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=30929"/>
		<updated>2008-10-14T20:16:43Z</updated>

		<summary type="html">&lt;p&gt;Wiki-Mwtoews: expand&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*&lt;br /&gt;
 yum install subversion* expat* libtool* automake* bison* flex doxygen libjpeg-devel libpng libpng-devel alsa-lib-devel&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;
===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;
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;
===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;/div&gt;</summary>
		<author><name>Wiki-Mwtoews</name></author>
	</entry>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=Building_MapGuide_on_CentOS_5&amp;diff=30449</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=30449"/>
		<updated>2008-10-07T01:14:38Z</updated>

		<summary type="html">&lt;p&gt;Wiki-Mwtoews: ... still in progress ...&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*&lt;br /&gt;
 yum install subversion* expat* libtool* automake* bison* flex doxygen libjpeg-devel libpng libpng-devel&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;lt;code&amp;gt;java -version&amp;lt;code&amp;gt; and should see &amp;quot;Java(TM)&amp;quot; somewhere in the output.&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;
 svn checkout http://svn.osgeo.org/mapguide/tags/MAPGUIDE2.0.2/ mapguide-2.0.2&lt;/div&gt;</summary>
		<author><name>Wiki-Mwtoews</name></author>
	</entry>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=Building_MapGuide_on_CentOS_5&amp;diff=30445</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=30445"/>
		<updated>2008-10-06T22:38:17Z</updated>

		<summary type="html">&lt;p&gt;Wiki-Mwtoews: start instructions for CentOS5&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 # (add your entry after root &amp;quot;&amp;lt;username&amp;gt; ALL=(ALL)  ALL&amp;quot;, at about line 77)&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*&lt;br /&gt;
 yum install subversion* expat* libtool* automake* bison* flex doxygen libjpeg-devel libpng libpng-devel&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 are 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;
==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;
 svn checkout http://svn.osgeo.org/mapguide/tags/MAPGUIDE2.0.2/ mapguide-2.0.2&lt;/div&gt;</summary>
		<author><name>Wiki-Mwtoews</name></author>
	</entry>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=Building_MapGuide_on_Ubuntu_8.04&amp;diff=30439</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=30439"/>
		<updated>2008-10-06T20:41:37Z</updated>

		<summary type="html">&lt;p&gt;Wiki-Mwtoews: italicize administrator&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 Heron:&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 | 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;
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;
== 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-Mwtoews</name></author>
	</entry>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=Building_Mapguide_on_Ubuntu_7.10_Server&amp;diff=30438</id>
		<title>Building Mapguide on Ubuntu 7.10 Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.osgeo.org/w/index.php?title=Building_Mapguide_on_Ubuntu_7.10_Server&amp;diff=30438"/>
		<updated>2008-10-06T20:40:28Z</updated>

		<summary type="html">&lt;p&gt;Wiki-Mwtoews: italicize administrator&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are instructions that will aid a user with installing FDO 3.3 and MapGuide Open Source 2.0 from SVN trunk on Ubuntu 7.10 (Gutsy Gibbon) Server.  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;
By the time you read this, FDO 3.3 and MapGuide 2.0 may have their own branches in SVN.  If so, just swap out references to /trunk/ with the appropriate /branch/* where necessary.&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;
==BASIC SETUP==&lt;br /&gt;
&lt;br /&gt;
Install a basic Ubuntu Server 7.10 (Gutsy Gibbon).  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-java5-jdk&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;
Prepare your SVN profile to use the appropriate options for FDO and MapGuide.  Type the following at the Terminal.&lt;br /&gt;
&lt;br /&gt;
''(this just sets up your initial .subversion settings folder)''&lt;br /&gt;
 svn info http://svn.osgeo.org/fdo&lt;br /&gt;
&lt;br /&gt;
''(edit ~/.subversion/config)&lt;br /&gt;
 nano .subversion/config&lt;br /&gt;
&lt;br /&gt;
You can enable options by removing the comments (# ) in front of them, or just add new lines to the appropriate locations.&lt;br /&gt;
&lt;br /&gt;
In the Miscellany section, enable:&lt;br /&gt;
&lt;br /&gt;
 use-commit-times = yes&lt;br /&gt;
 enable-auto-props = yes&lt;br /&gt;
&lt;br /&gt;
In the Auto-Props section, add:&lt;br /&gt;
&lt;br /&gt;
 *.*=svn:eol-style=native&lt;br /&gt;
 *.sh=svn:executable&lt;br /&gt;
&lt;br /&gt;
Save and close the config file.&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.5.0-sun&lt;br /&gt;
&lt;br /&gt;
Edit /etc/jvm, moving &amp;quot;/usr/lib/jvm/java-1.5.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.5.0-sun&amp;quot;&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;
 mkdir fdosvn&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/trunk fdosvn&lt;br /&gt;
&lt;br /&gt;
''(type in your password after the following command if prompted)''&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;
 cd fdosvn&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 &amp;gt; build_thirdparty.log&lt;br /&gt;
&lt;br /&gt;
 nohup ./build_linux.sh &amp;gt; 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;
 mkdir mgsvn&lt;br /&gt;
&lt;br /&gt;
 svn checkout http://svn.osgeo.org/mapguide/trunk/MgDev/ mgsvn&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 mgsvn/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 &amp;gt; ../../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 ~/mgsvn/&lt;br /&gt;
&lt;br /&gt;
 nohup ./build_oem.sh &amp;gt; 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;
 nohup make &amp;gt; make_mapguide.log&lt;br /&gt;
&lt;br /&gt;
 nohup make install &amp;gt; install_mapguide.log&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Not sure if this is needed yet&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''/mgsvn/Web/src/webstudio /usr/local/mapguideopensource/webserverextensions/www/webstudio&lt;br /&gt;
&lt;br /&gt;
 --&amp;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;br /&gt;
&lt;br /&gt;
=== SET SERVICES TO AUTO-START ===&lt;br /&gt;
&lt;br /&gt;
'''!!! Warning, this is not working. See [http://trac.osgeo.org/mapguide/ticket/309 Ticket #309]  !!!'''&lt;br /&gt;
&lt;br /&gt;
Add Apache's control script into the system init structure:&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /usr/local/mapguideopensource/webserverextensions/apache2/bin/apachectl /etc/init.d/apache-mapguide&lt;br /&gt;
&lt;br /&gt;
Set up some default run level actions for Apache (basically, start on interactive, stop on shutdown/restart)&lt;br /&gt;
&lt;br /&gt;
 sudo update-rc.d apache-mapguide defaults 30 70&lt;br /&gt;
&lt;br /&gt;
Create a startup script for Mapguide server:&lt;br /&gt;
&lt;br /&gt;
 touch /usr/local/mapguideopensource/mapguidectl&lt;br /&gt;
 chmod u=rwx,go=r /usr/local/mapguideopensource/mapguidectl&lt;br /&gt;
 nano /usr/local/mapguideopensource/mapguidectl&lt;br /&gt;
&lt;br /&gt;
Add the following contents:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # MapGuide init script&lt;br /&gt;
 . /lib/lsb/init-functions&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
  start)&lt;br /&gt;
    log_daemon_msg &amp;quot;Starting MapGuide Server 2.0.0...&amp;quot;&lt;br /&gt;
    export GDAL_DATA=/usr/local/mapguideopensource/server/bin/data&lt;br /&gt;
    export PROJ_LIB=/usr/local/mapguideopensource/server/bin/nad&lt;br /&gt;
    export LD_LIBRARY_PATH=/usr/local/fdo-3.3.0/lib:&amp;quot;$LD_LIBRARY_PATH&amp;quot;&lt;br /&gt;
    pushd /usr/local/mapguideopensource/server/bin &amp;gt; /dev/null&lt;br /&gt;
    ./mgserver daemon &amp;gt; /dev/null&lt;br /&gt;
    popd &amp;gt; /dev/null&lt;br /&gt;
    log_end_msg 0&lt;br /&gt;
    ;;&lt;br /&gt;
  stop)&lt;br /&gt;
    log_daemon_msg &amp;quot;Stopping MapGuide Server 2.0.0...&amp;quot;&lt;br /&gt;
    MGPROCESS=`/usr/bin/pgrep -f -u root &amp;quot;mgserver daemon&amp;quot;`&lt;br /&gt;
    if [ &amp;quot;$MGPROCESS&amp;quot; != &amp;quot;&amp;quot; ]&lt;br /&gt;
    then&lt;br /&gt;
      /bin/kill $MGPROCESS&lt;br /&gt;
    fi&lt;br /&gt;
    log_end_msg 0&lt;br /&gt;
    ;;&lt;br /&gt;
  *)&lt;br /&gt;
    echo &amp;quot;Usage: $0 {start|stop}&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
    ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
Add MapGuide's control script into the system init structure:&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /usr/local/mapguideopensource/mapguidectl /etc/init.d/mapguide&lt;br /&gt;
&lt;br /&gt;
Set up some default run level actions for MapGuide (basically, start on interactive, stop on shutdown/restart)&lt;br /&gt;
&lt;br /&gt;
 sudo update-rc.d mapguide defaults 35 65&lt;br /&gt;
&lt;br /&gt;
Restart and see if it works!&lt;/div&gt;</summary>
		<author><name>Wiki-Mwtoews</name></author>
	</entry>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=Building_MapGuide_on_Ubuntu_8.04&amp;diff=28583</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=28583"/>
		<updated>2008-09-04T23:50:30Z</updated>

		<summary type="html">&lt;p&gt;Wiki-Mwtoews: /* BUILD MAPGUIDE */ missing tee/Heron&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 Heron:&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 | 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;
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;
== 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-Mwtoews</name></author>
	</entry>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=Building_Mapguide_on_Ubuntu_7.10_Server&amp;diff=28506</id>
		<title>Building Mapguide on Ubuntu 7.10 Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.osgeo.org/w/index.php?title=Building_Mapguide_on_Ubuntu_7.10_Server&amp;diff=28506"/>
		<updated>2008-09-03T00:46:25Z</updated>

		<summary type="html">&lt;p&gt;Wiki-Mwtoews: update to exact apperance in file&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are instructions that will aid a user with installing FDO 3.3 and MapGuide Open Source 2.0 from SVN trunk on Ubuntu 7.10 (Gutsy Gibbon) Server.  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;
By the time you read this, FDO 3.3 and MapGuide 2.0 may have their own branches in SVN.  If so, just swap out references to /trunk/ with the appropriate /branch/* where necessary.&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;
==BASIC SETUP==&lt;br /&gt;
&lt;br /&gt;
Install a basic Ubuntu Server 7.10 (Gutsy Gibbon).  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-java5-jdk&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;
Prepare your SVN profile to use the appropriate options for FDO and MapGuide.  Type the following at the Terminal.&lt;br /&gt;
&lt;br /&gt;
''(this just sets up your initial .subversion settings folder)''&lt;br /&gt;
 svn info http://svn.osgeo.org/fdo&lt;br /&gt;
&lt;br /&gt;
''(edit ~/.subversion/config)&lt;br /&gt;
 nano .subversion/config&lt;br /&gt;
&lt;br /&gt;
You can enable options by removing the comments (# ) in front of them, or just add new lines to the appropriate locations.&lt;br /&gt;
&lt;br /&gt;
In the Miscellany section, enable:&lt;br /&gt;
&lt;br /&gt;
 use-commit-times = yes&lt;br /&gt;
 enable-auto-props = yes&lt;br /&gt;
&lt;br /&gt;
In the Auto-Props section, add:&lt;br /&gt;
&lt;br /&gt;
 *.*=svn:eol-style=native&lt;br /&gt;
 *.sh=svn:executable&lt;br /&gt;
&lt;br /&gt;
Save and close the config file.&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.5.0-sun&lt;br /&gt;
&lt;br /&gt;
Edit /etc/jvm, moving &amp;quot;/usr/lib/jvm/java-1.5.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.5.0-sun&amp;quot;&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;
 mkdir fdosvn&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/trunk fdosvn&lt;br /&gt;
&lt;br /&gt;
''(type in your password after the following command if prompted)''&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;
 cd fdosvn&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 &amp;gt; build_thirdparty.log&lt;br /&gt;
&lt;br /&gt;
 nohup ./build_linux.sh &amp;gt; 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;
 mkdir mgsvn&lt;br /&gt;
&lt;br /&gt;
 svn checkout http://svn.osgeo.org/mapguide/trunk/MgDev/ mgsvn&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 mgsvn/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 &amp;gt; ../../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 ~/mgsvn/&lt;br /&gt;
&lt;br /&gt;
 nohup ./build_oem.sh &amp;gt; 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;
 nohup make &amp;gt; make_mapguide.log&lt;br /&gt;
&lt;br /&gt;
 nohup make install &amp;gt; install_mapguide.log&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Not sure if this is needed yet&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/mgsvn/Web/src/webstudio /usr/local/mapguideopensource/webserverextensions/www/webstudio&lt;br /&gt;
&lt;br /&gt;
 --&amp;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;br /&gt;
&lt;br /&gt;
=== SET SERVICES TO AUTO-START ===&lt;br /&gt;
&lt;br /&gt;
'''!!! Warning, this is not working. See [http://trac.osgeo.org/mapguide/ticket/309 Ticket #309]  !!!'''&lt;br /&gt;
&lt;br /&gt;
Add Apache's control script into the system init structure:&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /usr/local/mapguideopensource/webserverextensions/apache2/bin/apachectl /etc/init.d/apache-mapguide&lt;br /&gt;
&lt;br /&gt;
Set up some default run level actions for Apache (basically, start on interactive, stop on shutdown/restart)&lt;br /&gt;
&lt;br /&gt;
 sudo update-rc.d apache-mapguide defaults 30 70&lt;br /&gt;
&lt;br /&gt;
Create a startup script for Mapguide server:&lt;br /&gt;
&lt;br /&gt;
 touch /usr/local/mapguideopensource/mapguidectl&lt;br /&gt;
 chmod u=rwx,go=r /usr/local/mapguideopensource/mapguidectl&lt;br /&gt;
 nano /usr/local/mapguideopensource/mapguidectl&lt;br /&gt;
&lt;br /&gt;
Add the following contents:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # MapGuide init script&lt;br /&gt;
 . /lib/lsb/init-functions&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
  start)&lt;br /&gt;
    log_daemon_msg &amp;quot;Starting MapGuide Server 2.0.0...&amp;quot;&lt;br /&gt;
    export GDAL_DATA=/usr/local/mapguideopensource/server/bin/data&lt;br /&gt;
    export PROJ_LIB=/usr/local/mapguideopensource/server/bin/nad&lt;br /&gt;
    export LD_LIBRARY_PATH=/usr/local/fdo-3.3.0/lib:&amp;quot;$LD_LIBRARY_PATH&amp;quot;&lt;br /&gt;
    pushd /usr/local/mapguideopensource/server/bin &amp;gt; /dev/null&lt;br /&gt;
    ./mgserver daemon &amp;gt; /dev/null&lt;br /&gt;
    popd &amp;gt; /dev/null&lt;br /&gt;
    log_end_msg 0&lt;br /&gt;
    ;;&lt;br /&gt;
  stop)&lt;br /&gt;
    log_daemon_msg &amp;quot;Stopping MapGuide Server 2.0.0...&amp;quot;&lt;br /&gt;
    MGPROCESS=`/usr/bin/pgrep -f -u root &amp;quot;mgserver daemon&amp;quot;`&lt;br /&gt;
    if [ &amp;quot;$MGPROCESS&amp;quot; != &amp;quot;&amp;quot; ]&lt;br /&gt;
    then&lt;br /&gt;
      /bin/kill $MGPROCESS&lt;br /&gt;
    fi&lt;br /&gt;
    log_end_msg 0&lt;br /&gt;
    ;;&lt;br /&gt;
  *)&lt;br /&gt;
    echo &amp;quot;Usage: $0 {start|stop}&amp;quot;&lt;br /&gt;
    exit 1&lt;br /&gt;
    ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
Add MapGuide's control script into the system init structure:&lt;br /&gt;
&lt;br /&gt;
 sudo ln -s /usr/local/mapguideopensource/mapguidectl /etc/init.d/mapguide&lt;br /&gt;
&lt;br /&gt;
Set up some default run level actions for MapGuide (basically, start on interactive, stop on shutdown/restart)&lt;br /&gt;
&lt;br /&gt;
 sudo update-rc.d mapguide defaults 35 65&lt;br /&gt;
&lt;br /&gt;
Restart and see if it works!&lt;/div&gt;</summary>
		<author><name>Wiki-Mwtoews</name></author>
	</entry>
</feed>