[mapserver-users] Ruby MapScript on Mac OS X?
William Kyngesburye
woklist at kyngchaos.com
Fri Jul 18 07:03:32 PDT 2008
Here's a way to add ruby to my MapServer framework build.
Get the matching 5.0 Mapserver source (5.2 release coming soon).
Also get the GD 2.0.35 source, since some internal operations use GD.
Copy these GD headers into the Mapserver source:
entities.h
gd_io.h
gd.h
gdcache.h
gdfontg.h
gdfontl.h
gdfontmb.h
gdfonts.h
gdfontt.h
gdfx.h
Then copy this file to the Mapserver source:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapscriptvars
Type: application/octet-stream
Size: 631 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080718/f6950f54/attachment.obj>
-------------- next part --------------
Now, in a Terminal window, cd to the ruby mapscript source folder and
(as the readme says):
ruby extconf.rb
make
You will probably get an error about a missing architecture, but at
least on Leopard it is ignored and I got a ruby mapscript "bundle".
If this works, I can include the mapscripvars and instructions in my
upcoming 5.2 binaries.
On Jul 18, 2008, at 7:56 AM, Tom Huras wrote:
> William:
> I'm on OS X 10.4.11 with my own Ruby installation to a more recent
> version (1.8.5) than shipped with OS X.
>
> I am using your MapServer framework because it appeared to be a
> cleaner way of getting it going.
>
> A couple of years ago, I attempted the full build from MapServer
> source with all its prerequisite software and got bogged down on
> some compiler issue with one of the prerequisites. I left it for a
> while and then discovered your site where you had done the heavy
> lifting to do the build. Thanks for that!
>
> /tom
>
> William Kyngesburye wrote:
>>
>> I haven't given any thought to ruby yet, but I can look into it.
>> Which OSX version? I believe Leopard has Ruby, but not Tiger. I
>> would prefer to start with the system Ruby. A possibility that I
>> haven't worked out fully yet is to use my MapServer framework +
>> MapServer source to build just the Ruby MapScript.
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
Theory of the Universe
There is a theory which states that if ever anyone discovers exactly
what the universe is for and why it is here, it will instantly
disappear and be replaced by something even more bizarrely
inexplicable. There is another theory which states that this has
already happened.
-Hitchhiker's Guide to the Galaxy 2nd season intro
More information about the MapServer-users
mailing list