developer (#13) - FGS Compatibility (#37) - Message List

FGS Compatibility

The last week I have been setting up an environment for pgRouting on a Mandriva 2007 (didn't work) and 2007.1 box. Considering most of the needed software is either not available as an rpm, or useless (e.g. the mapserver package of 2007.1 does not support postgis :S ) I had to compile most of the stuff myself, not so much of a problem really, except that it is a lof of work and I'll have to do it all over again installing it on another machine. Besides that I also discovered that mapserver is not able to compile the PHP bindings due to the changes Mandriva made to the php-devel files >:(

I saw that there seems to be a dandy fullblown self-installer for mapserver available, including with all it's dependancies and chameleon as well, named FGS.

Has anyone over here already tried pgRouting together with this package? Or is there a module/package of pgRouting available for FGS? It it would be really neat is setting up pgRouting with FGS is possible. This would make setting up production and dev environments a breeze!

  • Message #197

    Maybe you should directly use the  GeoLive environment which allready include the pgrouting library (version 1.0.0a) and all the dependencies required.

    To install geolive on your madriva installation the futher "easy" steps are requiered :

    • uncompress the  geolive-server-1.0.4.tar.bz2 tarball where you want to store the chrooted environment, in this instructions we choose the path : /home/golive,
    • mount some directories to be able to comunicate with your current environment (a kernel 2.6.10 version at least is required) :
      mount -o bind /dev /home/geolive/dev
      # the following line is not required but make you able to communicate with apps trough unix sockets like Xorg for example ...
      mount -o bind /tmp /home/geolive/tmp
      mount -t proc none /home/geolive/proc
      mount -t sysfs none /home/geolive/sys
      # The following line is not requiered but make you able to use some apps like screen for example
      mount -t devpts none /home/geolive/dev/pts
      
    • to be able to get access to internet you also need to copy some stuff from your current installation into the geolive environment :
      cp /etc/resolv.conf /home/geolive/etc/
      cp /etc/hosts /home/geolive/etc
      
    • if you want to get the correct mount points available on your current environment and not the wrong mtab allready available in the geolive environment please use the following syntaxe :
      cp /etc/mtab /home/geolive/etc/
      
    • use this command line to enter in your "brand new"  GeoLive environment :
      chroot /home/geolive/ /bin/geolive
      

    Now you should get a message from your new environment which tell you that you're now in the geolive environment.

    Here is the result I've get on an installation we've made for our client on his webserver, so you should get something similar :

    ns39591 ~ # chroot /home/geolabs/ /bin/geolive
    >>> Regenerating /etc/ld.so.cache...
    Bienvenue dans l'environnement GeoLive-1.0
    (GeoLive-1.0) ns39591 / #
    

    I do my apologize cause right know the system will talk to you in french but some stuff are still in the english language and if you use the utf8 encoding you won't get into trouble ...

    Then you only need to create you're pgdata and so on following for example the workshop available on this site from the geolive environment to get your pgrouting installation available. Furthermore if you've mounted the tmp directory as mentioned before then you should be able to connect using some client to connect from your mandriva installation to your geolive environment or respectively from geolive to your allready installed mandriva.

    Now you just need to make something else : enjoy your  GeoLive easy and quick installation you've made :)

    If something goes wrong please give us feedback here or on the track system we use for the  GeoLive environment.