<div dir="ltr">Dear Gerald, <div><br></div><div>In order to make sure, I tried the following steps without changing the <span style="font-size:12.8px">Makefile.in</span></div><div><span style="font-size:12.8px">1) make clean </span></div><div><span style="font-size:12.8px">2) </span><span style="font-size:12.8px">run configure script with python support deactivated,</span></div><div><span style="font-size:12.8px">3) </span><span style="font-size:12.8px">run make and verify that there is no more dependencies with python library -- no results </span></div><div><span style="font-size:12.8px">4) </span><span style="font-size:12.8px">then run the configure script a second time with python support activated</span></div><div><span style="font-size:12.8px">5) </span><span style="font-size:12.8px">run make again and make the same test to verify the link with the python library. -- </span><span>lib</span><span><b>python</b></span><span>2.7.so.1.0 => /usr/lib/x86_64-linux-gnu/lib</span><span><b>python</b></span><span>2.7.so.1.0 (0x00007f8b491eb000)</span></div><div><span>6)  </span><span style="font-size:12.8px">run the configure script again with js support activated</span></div><div><span style="font-size:12.8px">7) </span><span style="font-size:12.8px">run make again and make the same test to verify the link with the python library. -- no results </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Then I edited the Makefile.in as you mentioned. After that I tried above steps and the result is same. In that case, make clean command has been run and run the </span><span style="font-size:12.8px">configure script  again with python support activated. It works. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">But If I build ZOO-kernel with JavaScript Support first and, then I can build it with python support. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Best</span></div><div><span style="font-size:12.8px">Niroshan Sanjaya </span></div><div><span><br></span></div>







<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 6, 2016 at 7:33 PM, Fenoy Gerald <span dir="ltr"><<a href="mailto:gerald.fenoy@geolabs.fr" target="_blank">gerald.fenoy@geolabs.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear niroshan,<br>
thanks a lot for this report.<br>
<br>
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.<br>
<br>
${MS_FILE} ${PYTHON_FILE} ${PHP_FILE} ${JAVA_FILE} ${JS_FILE} ${PERL_FILE} ${RUBY_FILE} ${YAML_FILE} ${OTB_FILE} ${SAGA_FILE}<br>
<br>
To make sure this solve the issue, you should try the following:<br>
<br>
 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,<br>
 2) run configure script with python support deactivated,<br>
 3) run make and verify that there is no more dependencies with python library (by using ldd command as you mentioned earlier),<br>
 4) then run the configure script a second time with python support activated,<br>
 5) run make again and make the same test to verify the link with the python library.<br>
<br>
In case it works, then we will have to update the Makefile.in.<br>
<br>
I hope to hear back from you tests and I hope we can solve this issue.<br>
<br>
Best regards,<br>
<div><div class="h5"><br>
> Le 5 mai 2016 à 15:04, Niroshan Sanjaya <<a href="mailto:nsanj88@gmail.com">nsanj88@gmail.com</a>> a écrit :<br>
><br>
> Hi all,<br>
> 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.<br>
><br>
> Basically this error occurred when ZOO-Kernel has been built without Python support. As you know ZOO-Kernel supports C, Python and JavaScript etc..<br>
> 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.<br>
> 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.<br>
> 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:<br>
><br>
> "libpython2.7.so.1.0 => /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 (0x00007fcf14858000)"<br>
><br>
> Now you can copy the ZOO-Kernel to the cgi-bin directory of your HTTP server and check. It should be worked now!<br>
><br>
> 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<br>
> built already.<br>
> If somebody is having the same problem and if you want to active new support you can try with this method.<br>
><br>
><br>
> Looking forward to hear new suggestions and opinions.<br>
><br>
><br>
> Best<br>
> Niroshan Sanjaya<br>
</div></div>> _______________________________________________<br>
> Zoo-discuss mailing list<br>
> <a href="mailto:Zoo-discuss@lists.osgeo.org">Zoo-discuss@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/zoo-discuss" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/zoo-discuss</a><br>
<br>
<br>
<br>
Gérald Fenoy<br>
<a href="http://wiki.osgeo.org/wiki/User:Djay" rel="noreferrer" target="_blank">http://wiki.osgeo.org/wiki/User:Djay</a><br>
<br>
</blockquote></div><br></div>