[mapserver-users] OSX binaries update
Dane Springmeyer
blake at hailmail.net
Tue Sep 23 16:26:21 PDT 2008
Hi William,
I just installed you new mapserver 5.2.0-2.dmg to test out python
mapscript.
I get an inconv error which is odd. Any ideas?
springmeyer:~ spring$ python
Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import mapscript
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.5/site-packages/mapscript.py", line 7, in
<module>
import _mapscript
ImportError: dlopen(/Library/Python/2.5/site-packages/_mapscript.so,
2): Symbol not found: _iconv
Referenced from: /Library/Frameworks/GDAL.framework/Versions/1.5/
Libraries/libpq.dylib
Expected in: /usr/local/lib/libiconv.2.dylib
Thanks,
Dane
On Sep 19, 2008, at 9:18 AM, William Kyngesburye wrote:
> 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
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list