[Zoo-discuss] Problems building zoo kernel

Farkas H farkas.dus at gmail.com
Mon Oct 29 10:39:02 PDT 2012


Hi Gérald,

thanks for your response, you were right the issue was the python setup.
After a few days break I finished the zooWPS setup with Python support.

Please find my solution which based on Windows 7, 64-Bit here [1].

Is there a tutorial concerning the caching support?
Where can I find informations?

Hope to hear from you.

Regards,
Farkas

[1]
(1) Install Python 2.7.3, 32-Bit
directory: e.g. C:\Python27

(2) Install Python Extension Package GDAL
GDAL-1.9.2.win32-py2.7.exe from http://www.lfd.uci.edu/~gohlke/pythonlibs/

(3) Install Libxml and Libxslt Python Bindings for Windows
libxml2-python-2.7.7.win32-py2.7.exe from
http://users.skynet.be/sbi/libxml-python/

(4) Install OSGeo4W
choose Web-GIS Quick-Installation with MapServer, GDAL and Apache support
directory: e.g. C:\OSGeo4W

(5) Copy files from
..\zoo-project\zoo-services\ogr\base-vect-ops-py\cgi-env to
C:\OSGeo4W\bin

(6) Copy built zoo_loader.cgi with Python support to C:\OSGeo4W\bin

(7) Copy and modify main.cfg to C:\OSGeo4W\bin

(8) Add [env] section with variable PYTHONPATH to main.cfg
e.g.
[env]
PYTHONPATH = C:\Windows\system32\python27.zip;C:\Python27\DLLs;
C:\Python27\lib;C:\Python27\lib\plat-win;C:\Python27\lib\lib-tk;
C:\Python27;C:\Python27\lib\site-packages

(9) Change line 1 in file C:\Python27\Lib\site-packages\libxml2.py
old: import libxml2mod
new: from libxmlmods import *

(10) Create new Windows environment variable
name: GDAL_DATA
value: C:\Python27\Lib\site-packages\osgeo\data\gdal

(11) Make sure intl.dll is in your Windows path



On 22 October 2012 13:08, Gérald Fenoy <gerald.fenoy at geolabs.fr> wrote:
> Hi Farkas,
> I'm so sorry for answering so late, I got a busy days and found this email already started some days ago.
>
> I still think that using the Python version is the best option and should be easier to setup. Note that you will probably need to update your main.cfg file to add the PYTHONPATH environment variable in your [env] section to get your Python services working correctly.
>
> To build the base-vect-ops i used the following command line:
>
> nmake /f makefile.vc FCGI_DIR=\MMBK\SRCS\fcgi-2.4.1-SNAP-0311112127 INTL_DIR=\MMBK\SRCS\gettext-0.14.6\gettext-runtime\intl SSL_DIR=\MMBK\SRCS\openssl-1.0.1c CURL_DIR=D:\MMBK\SRCS\curl-7.27.0\builds\libcurl-release-dll-zlib-dll-ipv6-sspi-winssl XML2_DIR=\MMBK\SRCS\libxml2-2.8.0 ICONV_DIR=\MMBK\SRCS\libiconv-win32-1.14\libiconv-win32-1.14 PY_DIR=\MMBK\SRCS\Python-2.7.3 PY_LIBRARY=\MMBK\SRCS\Python-2.7.3\PCbuild\python27.lib MS_DIR=\MMBK\SRCS\mapserver-6.0.3 GDAL_DIR=\MMBK\SRCS\gdal-1.9.1 GD_DIR=\MMBK\SRCS\pierrejoye-gd-libgd-733361a31aab\src JS_DIR=\MMBK\SRCS\js-1.8.5\js\src\  ZOOK_DIR=\MMBK\SRCS\zoo-project\zoo-project\zoo-kernel\ FT_DIR=d:\MMBK\SRCS\freetype-2.4.10 GEOS_DIR=d:\MMBK\SRCS\geos-3.3.5
>
> Please note that I need to use the makefile.vc from rev. 374 [1] to be able to build on windows. Sorry for this mistake, but we are using the Python version which is more flexible at usage. Nevertheless, with this new revision you should succeed in building the ZOO-Service.
>
> Hope this will help you and I can hear from you again despite this latency in getting answer to your question,
> Best regards,
>
> Gérald Fenoy
> gerald.fenoy at geolabs.fr
>
> [1] http://www.zoo-project.org/trac/changeset/374
>


More information about the Zoo-discuss mailing list