[FGS] Packaging Ruby Mapscript...

Robert Thau rst at alum.mit.edu
Fri Apr 7 17:43:25 EDT 2006

Guillaume Dallaire writes:
 > I just created a new module containing all libstdc++ dependencies for FGS.
 > For Ruby Mapscript, I think the best way to produce fully portable FGS 
 > modules would be to create a build script for Ruby in fgs-dev (like any 
 > other FGS modules). Then, I could use it to build Ruby Mapscript 
 > distribution modules from my build system and make it available to 
 > others FGS users.
 > You can checkout the fgs-dev environment via CVS, see:
 > http://www.maptools.org/fgs/index.phtml?page=fgs-sandbox.html

I've already looked at it briefly --- but so far, it's been easier for
me to build the individual software components I need directly from
distribution sources.  I'll look into it further, but these scripts
can be tricky to debug, so it may be a little while.

I don't know if it helps, but the ruby+rails+ivygis module I produced
does have a complete Ruby 1.8.4 environment inside.  It's not *quite*
what you get out of "configure; make; make install"; there are a few
changes to make it relocatable.  In addition to altering the '#!'
lines of a few Ruby scripts in "$FGS_HOME/bin", I added a shell
wrapper around the ruby binary to set RUBYLIB.  (I suppose I could
have used a 'setenv.sh' for that, but I was worried that might require
users to redo '. setenv.sh' themselves before a newly installed module
would work).

Thanks for the tips,


More information about the Foss-gis-suite mailing list