[Zoo-discuss] Programming Language (Python) set in ZCFG file is not currently supported by ZOO Kernel.
Fenoy Gerald
gerald.fenoy at geolabs.fr
Fri May 6 03:33:51 PDT 2016
Dear niroshan,
thanks a lot for this report.
You are perfectly right mentioning that it is required to run make clean in case you have already built the ZOO-Kernel without this support. I suppose that it comes from a wrong definition of the zoo_service_loader.o target on line 93 in the Makefile.in adding the following after service.h should solve this issue.
${MS_FILE} ${PYTHON_FILE} ${PHP_FILE} ${JAVA_FILE} ${JS_FILE} ${PERL_FILE} ${RUBY_FILE} ${YAML_FILE} ${OTB_FILE} ${SAGA_FILE}
To make sure this solve the issue, you should try the following:
1) add ${MS_FILE} ${PYTHON_FILE} ${PHP_FILE} ${JAVA_FILE} ${JS_FILE} ${PERL_FILE} ${RUBY_FILE} ${YAML_FILE} ${OTB_FILE} ${SAGA_FILE} to line 93,
2) run configure script with python support deactivated,
3) run make and verify that there is no more dependencies with python library (by using ldd command as you mentioned earlier),
4) then run the configure script a second time with python support activated,
5) run make again and make the same test to verify the link with the python library.
In case it works, then we will have to update the Makefile.in.
I hope to hear back from you tests and I hope we can solve this issue.
Best regards,
> Le 5 mai 2016 à 15:04, Niroshan Sanjaya <nsanj88 at gmail.com> a écrit :
>
> Hi all,
> I have faced and issue regarding Programming Language set in ZCFG file in Ubuntu 14.04. The error says "Programming Language (Python) set in ZCFG file is not currently supported by ZOO Kernel". Finally the problem has been solved. Therefor I would like to keep a short note regarding that.
>
> Basically this error occurred when ZOO-Kernel has been built without Python support. As you know ZOO-Kernel supports C, Python and JavaScript etc..
> But Python and JavaScript are optional except C. You should activate them when you run the ./configure script. For python you can use "./configure --with-python" command.
> Then you can check whether python.h has been found correctly or not while you are running ./configure script. If that is successful you can run ldd zoo_loader.cgi and see any reference to python.
> In my case when I run the "ldd zoo_loader.cgi | grep python" command I did not get any results. You should remember to run this command in the directory where you run the configure tool. It does not return any values mean there is no connection in between python library and ZOO-kernel. Now let's run the make clean and check the connection. For that you can run "make clean" command, then you can run "make" and check with the "ldd zoo_loader.cgi | grep python" command (you can run them together with "make clean && make && ldd zoo_loader.cgi | grep python" command). Now it has return something. In my case it has return the following result:
>
> "libpython2.7.so.1.0 => /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 (0x00007fcf14858000)"
>
> Now you can copy the ZOO-Kernel to the cgi-bin directory of your HTTP server and check. It should be worked now!
>
> Basically, this has happened when you run the ./configure when it has been already built. When you are trying again you should run "make clean" first to remove any object files which
> built already.
> If somebody is having the same problem and if you want to active new support you can try with this method.
>
>
> Looking forward to hear new suggestions and opinions.
>
>
> Best
> Niroshan Sanjaya
> _______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/zoo-discuss
Gérald Fenoy
http://wiki.osgeo.org/wiki/User:Djay
More information about the Zoo-discuss
mailing list