[mapserver-users] OSX binaries update

William Kyngesburye woklist at kyngchaos.com
Fri Sep 19 12:18:00 EDT 2008


I finally figured out a longstanding problem with my OSX binaries -  
python mapscript wasn't working.

The problem comes from FastCGI support for the mapserv CGI.  When  
python tries to import mapscript, you get an error about libfcgi not  
finding the _environ symbol (from apache?).  Since I build MapServer  
with a dynamic library (framework) I can't use a separate library for  
mapserv and mapscript.

I tried moving cgi stuff from the library into mapserv, but I think  
CGI functions are needed elsewhere also, or I just didn't go far  
enough, and I couldn't get it to work.

So, given this, and the recent discussion saying that fastcgi only  
provides a tiny performance gain, I removed fastcgi from my OSX  
binaries. (fastcgi is also a lot more complex to setup on OSX compared  
to standard CGI and the various mapscripts.)

And python mapscript now works on OSX!

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"I ache, therefore I am.  Or in my case - I am, therefore I ache."

- Marvin




More information about the mapserver-users mailing list