Wednesday, April 09, 2008

Build notes for Mapguide 2.0 on CentOS

My notes when following these build guides: BuildingAndConfiguringMGOSOnLinux.pdf and OpenSourceBuild__README.html

My Linux knowledge is rather average, i know bits and have used it for over 10 years on and off, occasionally some Solaris, but i am by no means an expert.

  1. It's not supported yet on 64-bit Linux, use a 32-bit version
  2. Make sure you install the GNOME Software Development packages, otherwise you will hit an error with xslt-config being missing (libxslt-devel libxslt) but this was a big hassle on RHEL 4.
  3. If your using Vmware Player and your on a dual core machine, add numvcpus = "2" to your .VMX file to use both CPU's otherwise you'll only ever see 50% CPU usage
  4. I started with RHEL 4 and then switched to using CentOS coz i didn't have a Redhat Network account which gave me access and yum wasn't playing nice for some reason (couldn't find packages?) where as CentOS just works with any login requirement.
  5. I used the thoughtpolice vmware image @
  6. For Centos the Yum Extender is pretty good for managing packages, use "yum install yumextender"
  7. I built the FDO, i believe the prebuilt RHEL4 fdo binaries get installed to /usr/local/fdo-3.3.0/lib , the download notes don't make that clear (i guess it would be better as an rpm really?).
  8. If you have the apr packages installed that will break apache if they are the 0.94 versions, the error message i got was "undefined reference to 'apr_os_uuid_get'". I just removed the package, which did uninstall the default apache httpd and other stuff like subversion also depends on (so it's the wrong thing to do!).
  9. SSH is your friend :) I use Putty and Winscp on XP
  10. I changed the fdo and from #!/bin/sh to #!/bin/bash after i hit "acinclude.m4:7: warning: underquoted definition of FDO_HELP_STRING"
  11. Nabble FDO Users and Mapguide are the best source of information and the best place to ask questions for this stuff. Just search before you ask!
  12. uncomment the lines: AddHandler mgmapagent_handler fcgi and LoadModule mgmapagent_module modules/ in /usr/local/mapguideopensource/webserverextensions/apache/conf/mapguide.conf or you will get the mapguide.fcgi binary returned :(
  13. I had a font problem, almost wingdingy which was solved by copying verdana.ttf from /usr/share/fonts/msttcorefonts
So it's up and running, mapadmin works and i managed to load a sample package. the map didn't show tho at first, until i did #12 ...


BTW My Wmare image ended up being about 6.8 Gb at the end

1 comment:

UV said...

SOLUTION to 8 is to
yum install apr-devel
and a make clean in linux apt directory

here you can find the completed instructions