Newbie Mac OS X MapServer 4.6 question

William K woklist at CHARTER.NET
Tue Aug 9 14:42:52 EDT 2005

On Aug 9, 2005, at 10:21 AM, Bill Whitacre wrote:

> I've just installed the MapServer packages from Kyng Chaos and have a
> couple of questions:
> 1. When I try the CGI I get the "MapServer Itasca Application" page
> OK but when hit the Initialize button with Basic Application selected
> I get the following error:
>> getString(): Symbol definition error. Parsing error near (none):
>> (line 73)
> My form variables look like this in the /workshop/index.html file:
>>     <!-- EDIT THE FORM ACTION -->
>>     <form name="demo" method="GET" action="/cgi-bin/mapserv"
>> onSubmit="submit_form()">
>>       <input type="hidden" name="layer" value="lakespy2">
>>       <input type="hidden" name="layer" value="dlgstln2">
>>       <input type="hidden" name="zoomsize" value=2>
>>       <input type="hidden" name="map" value="/Library/WebServer/
>> Documents/workshop/">
>>       <input type="hidden" name="program" value="/cgi-bin/mapserv">
>>       <input type="hidden" name="root" value="/Library/WebServer/
>> Documents/workshop/">
>>       <input type="hidden" name="map_web_imagepath" value="/Library/
>> WebServer/Documents/tmp/">
>>       <input type="hidden" name="map_web_imageurl" value="/tmp/">
> What have I done wrong?
The root hidden variable is a web path (URL), not a file system path,  
so it should be "/workshop/".  That's all I can think of from this  
snippet.  But, I'm getting the same thing, and the logs don't tell me  
anything.  Hmm.  It's been so long since I used CGI MapServer.  Maybe  
someone else has an idea.

I see that the itasca readme says it's made for MapServer 4.0, there  
have been enough changes from then to MapServer 4.6 that the demo may  
not work.  I recall seeing some messages on the list about that.

Maybe I should remove that recommendation from my installer readme.   
You could try the tutorial from the MapServer documentation page.

> 2. When I try the testphp.php script - that looks like this:
> I get the following error:
>> Warning: dl(): Unable to load dynamic library '/usr/lib/php/
>> extensions/no-debug-non-zts-20020429/' - (null) in /
>> Library/WebServer/Documents/testphp.php on line 2
> along with the normal PHP info stuff.
> Again, what have I done wrong?
Don't know if you did anything wrong, but somehow your httpd.conf is  
looking in the wrong location for  It should be / 
usr/local/php4/lib/php/extensions/no-debug-non-zts-20020429.  Are you  
using my PHP with this or Apple's PHP?  It doesn't work with Apple's  

William Kyngesburye <kyngchaos at>

[Trillian]  What are you supposed to do WITH a maniacally depressed  

[Marvin]  You think you have problems?  What are you supposed to do  
if you ARE a maniacally depressed robot?  No, don't try and answer,  
I'm 50,000 times more intelligent than you and even I don't know the  

- HitchHiker's Guide to the Galaxy

More information about the mapserver-users mailing list