[Mapserver-users] PHP MapScript on Mac OS X?

Zak James zak-ms at hoppsan.org
Thu Mar 18 18:41:29 PST 2004


Gary,

In fact, it has been possible to use loadable libraries with php since 
version 10.1 of OS X. I've been running mapscript on 10.1 - 10.3.3 so 
rest assured that it will work.

There's a lot of confusion on this dl issue because the apple dev site 
has an old article that incorrectly suggests it's not possible. The 
only wrinkle is that the library needs to be built as a 'bundle' for OS 
X so the linker flags are different than for most other unix platforms. 
This issue has been addressed in mapserver's configure script since 
last year so it builds 'out of the box'.

You can read more about bundles here:

http://www.kernelthread.com/mac/osx/programming.html

zak
--
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca


On Mar 17, 2004, at 1:15 PM, Gary Condon wrote:

> Zak,
>
> Thanks for the reply.  To be perfectly honest, although I was aware of 
> those instructions, I have not followed them to the letter yet because 
> of what I believe is a fundamental problem.
>
> To the best of my knowledge, the PHP dl() mechanism used in the 
> instructions is broken in Mac OS X - at least in PHP 4.3.4 on Mac OS X 
> 10.3.2.  To follow the instructions precisely, I would need to build 
> up a 10.2.3 system (somewhat antiquated) with older versions of 
> MapServer & PHP.
>
> Although this is feasible, if cumbersome, I am still hoping that 
> somebody can / will report any verified success of using PHP MapScript 
> on relatively current builds of the Mac OS X environment.  I would 
> also be interested in hearing about failures in order to avoid known 
> pitfalls.
>
> Gary
>
> On Mar 16, 2004, at 16:55, Zak James wrote:
>
>> Gary,
>>
>> These instructions provide some hints on support library builds and 
>> compiling mapserver, though they are a little out of date:
>>
>> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MacOS
>>
>>  With a recent version of OS X like 10.3 and recent versions of 
>> mapserver (from cvs) the build should proceed without problems after 
>> running configure.
>>
>> I encourage you to add any updated solutions you find to the wiki 
>> page above, so that others can benefit from your experiences.
>>
>> zak
>> --
>> Zak James
>> Applications and Software Development
>> DM Solutions Group Inc.
>> http://www.dmsolutions.ca
>>
>>
>> On Mar 16, 2004, at 12:49 PM, Gary Condon wrote:
>>
>>> All,
>>>
>>> I am trying to get PHP MapScript up and running on Mac OS X 10.3 
>>> but, so far, without success.
>>>
>>> I have tried using the precompiled version provided by Server 
>>> Logistics but I can't dl() the module under PHP 4.3.4 or 5.0b4.
>>>
>>> Has anybody out there gotten this to work?  If so, how?
>>>
>>> Thanks is advance,
>>>
>>> Gary
>>>
>>> _______________________________________________
>>> Mapserver-users mailing list
>>> Mapserver-users at lists.gis.umn.edu
>>> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>>
>>
>> _______________________________________________
>> Mapserver-users mailing list
>> Mapserver-users at lists.gis.umn.edu
>> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>
>
>




More information about the MapServer-users mailing list