<div dir="ltr">Now I get:<br><br>checking if OracleSpatial support requested... yes, user supplied ORACLE_HOME<br>configure: error: Oracle Spatial: libclntsh.so not found.<br><br>I enclose the config.log.<br clear="all"><br>
--<br>Micha³<br>
<br><br><div class="gmail_quote">2008/9/16 Umberto Nicoletti <span dir="ltr">&lt;<a href="mailto:umberto.nicoletti@gmail.com">umberto.nicoletti@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
try:<br>
<div class="Ih2E3d"><br>
-with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0<br>
<br>
</div>otherwise post the config.log file.<br>
<div><div></div><div class="Wj3C7c"><br>
Umberto<br>
<br>
2008/9/16 &nbsp;&lt;<a href="mailto:dzizes451@gmail.com">dzizes451@gmail.com</a>&gt;:<br>
&gt; Thanks for the tip!<br>
&gt; The Makefile looks like:<br>
&gt; &nbsp;-------------- Compiler Info -------------<br>
&gt; &nbsp; C compiler: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gcc -O2 -fPIC -Wall<br>
&gt; &nbsp; C++ compiler: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;g++ -O2 -fPIC -Wall<br>
&gt; &nbsp; Debug:<br>
&gt; &nbsp; Generic NINT:<br>
&gt;<br>
&gt; &nbsp;-------------- Renderer Settings ---------<br>
&gt; &nbsp; zlib support: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-DUSE_ZLIB<br>
&gt; &nbsp; png support:<br>
&gt; &nbsp; palette rgba png support:<br>
&gt; &nbsp; jpeg support:<br>
&gt; &nbsp; iconv support: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -DUSE_ICONV<br>
&gt; &nbsp; AGG support:<br>
&gt; &nbsp; AGG Freetype support:<br>
&gt; &nbsp; Ming(flash) support:<br>
&gt; &nbsp; PDFLib support:<br>
&gt;<br>
&gt; &nbsp;-------------- Support Libraries ---------<br>
&gt; &nbsp; Proj.4 support: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-DUSE_PROJ<br>
&gt; &nbsp; Libxml2 support:<br>
&gt; &nbsp; FriBidi support:<br>
&gt; &nbsp; Curl support: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-DUSE_CURL<br>
&gt; &nbsp; FastCGI support:<br>
&gt; &nbsp; Threading support: &nbsp; &nbsp; &nbsp; &nbsp; -DUSE_THREAD<br>
&gt; &nbsp; GEOS support:<br>
&gt;<br>
&gt; &nbsp;-------------- Data Format Drivers -------<br>
&gt; &nbsp; native tiff support:<br>
&gt; &nbsp; PostGIS support:<br>
&gt; &nbsp; EPPL7 support: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -DUSE_EPPL<br>
&gt; &nbsp; ArcSDE support:<br>
&gt; &nbsp; OGR support: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -DUSE_OGR<br>
&gt; &nbsp; GDAL support: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-DUSE_GDAL<br>
&gt; &nbsp; Oracle Spatial support: &nbsp; &nbsp;-DUSE_ORACLESPATIAL<br>
&gt;<br>
&gt; &nbsp;-------------- OGC Services --------------<br>
&gt; &nbsp; WMS Server: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-DUSE_WMS_SVR<br>
&gt; &nbsp; WMS Client: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-DUSE_WMS_LYR<br>
&gt; &nbsp; WFS Server:<br>
&gt; &nbsp; WFS Client: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-DUSE_WMS_LYR<br>
&gt; &nbsp; WCS Server:<br>
&gt; &nbsp; SOS Server:<br>
&gt;<br>
&gt; &nbsp;-------------- MapScript -----------------<br>
&gt; &nbsp; PHP MapScript: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; no<br>
&gt;<br>
&gt; the make command throws the following error:<br>
&gt;<br>
&gt; &nbsp;warning: libnnz10.so, needed by<br>
&gt; /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so, not<br>
&gt; found (try using -rpath or -rpath-link)<br>
&gt; /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so:<br>
&gt; undefined reference to `nztSearchNZDefault&#39;<br>
&gt; /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so:<br>
&gt; undefined reference to `nzosCipherSpecToStr&#39;<br>
&gt; /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so:<br>
&gt; undefined reference to `nztwOpenWallet&#39;<br>
&gt; /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so:<br>
&gt; undefined reference to `A_X931RandomInit&#39;<br>
&gt; ....<br>
&gt; ends with<br>
&gt; collect2: ld returned 1 exit status<br>
&gt; make: *** [shp2img] Error 1<br>
&gt;<br>
&gt; any ideas!<br>
&gt;<br>
&gt; --<br>
&gt; Micha³<br>
&gt;<br>
&gt;<br>
&gt; 2008/9/16 Umberto Nicoletti &lt;<a href="mailto:umberto.nicoletti@gmail.com">umberto.nicoletti@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; Usign tiff AND gdal is not recommended, you&#39;d better try these options:<br>
&gt;&gt;<br>
&gt;&gt; ./configure<br>
&gt;&gt; -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server<br>
&gt;&gt; -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr<br>
&gt;&gt; -with-threads -with-freetype &nbsp;-without-tiff -with-FastCGI<br>
&gt;&gt;<br>
&gt;&gt; as for the expat error:<br>
&gt;&gt;<br>
&gt;&gt; sudo apt-get install libexpat1 libexpat1-dev<br>
&gt;&gt;<br>
&gt;&gt; Umberto<br>
&gt;&gt;<br>
&gt;&gt; 2008/9/16 &nbsp;&lt;<a href="mailto:dzizes451@gmail.com">dzizes451@gmail.com</a>&gt;:<br>
&gt;&gt; &gt; Hi again,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I&#39;ve tried to compile mapserv executable with:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ./configure<br>
&gt;&gt; &gt; -with-oraclespatial=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server<br>
&gt;&gt; &gt; -with-proj -with-wfsclient -with-wmsclient -with-gdal -with-ogr<br>
&gt;&gt; &gt; -with-threads -with-freetype &nbsp;-with-tiff -with-FastCGI<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; and I receive this error:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; /usr/bin/ld: cannot find -lexpat<br>
&gt;&gt; &gt; collect2: ld returned 1 exit status<br>
&gt;&gt; &gt; make: *** [shp2img] Error 1<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Does anyone know what is wrong?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; Micha³<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Mon, Sep 15, 2008 at 3:16 PM, Dan Little &lt;<a href="mailto:danlittle@yahoo.com">danlittle@yahoo.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Umberto is right, for Mapserver to connect to Oracle you need to<br>
&gt;&gt; &gt;&gt; specify<br>
&gt;&gt; &gt;&gt; that capability at compile time. &nbsp;But for you ge tthat far I think you<br>
&gt;&gt; &gt;&gt; need<br>
&gt;&gt; &gt;&gt; to make sure that some of the basics work.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Also, if you cannot connect to Oracle via SQL*Plus (assuming the binary<br>
&gt;&gt; &gt;&gt; is<br>
&gt;&gt; &gt;&gt; installed) you have other problems including but not limited to:<br>
&gt;&gt; &gt;&gt; - needing to set the LD_LIBRARY_PATH to include all the libraries.<br>
&gt;&gt; &gt;&gt; &nbsp;This<br>
&gt;&gt; &gt;&gt; may also need to be done in Apache while running mapserver to access<br>
&gt;&gt; &gt;&gt; Oracle.<br>
&gt;&gt; &gt;&gt; - needing to configure your TNSNAMES file.<br>
&gt;&gt; &gt;&gt; - check firewall setting in order to make sure you can connect on 1521<br>
&gt;&gt; &gt;&gt; (or<br>
&gt;&gt; &gt;&gt; whatever port you are using for Oracle).<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Generally, when running an Oracle layer, you want to try the following<br>
&gt;&gt; &gt;&gt; diagnostic steps:<br>
&gt;&gt; &gt;&gt; 1) Use SQL Developer to connect to the database (it has it&#39;s own<br>
&gt;&gt; &gt;&gt; drivers<br>
&gt;&gt; &gt;&gt; built in, so there&#39;s no software dependency issues). &nbsp;This will resolve<br>
&gt;&gt; &gt;&gt; whether or not the databas is working.<br>
&gt;&gt; &gt;&gt; 2) On the machine, try connecting with SQL Plus. &nbsp;This will determine<br>
&gt;&gt; &gt;&gt; whether or not you have your client configured correctly. &nbsp;Do not move<br>
&gt;&gt; &gt;&gt; on<br>
&gt;&gt; &gt;&gt; until this works.<br>
&gt;&gt; &gt;&gt; 3) Try and re-compile Mapserver with Oracle Spatial. &nbsp;At the end of the<br>
&gt;&gt; &gt;&gt; ./configure script there is an output screen, ensure that you see<br>
&gt;&gt; &gt;&gt; Oracle is<br>
&gt;&gt; &gt;&gt; turned on, otherwise scroll up in the screen and see what&#39;s missing.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; ----- Original Message ----<br>
&gt;&gt; &gt;&gt; &gt; From: Umberto Nicoletti &lt;<a href="mailto:umberto.nicoletti@gmail.com">umberto.nicoletti@gmail.com</a>&gt;<br>
&gt;&gt; &gt;&gt; &gt; To: dzizes &lt;<a href="mailto:dzizes451@gmail.com">dzizes451@gmail.com</a>&gt;<br>
&gt;&gt; &gt;&gt; &gt; Cc: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt;&gt; &gt;&gt; &gt; Sent: Monday, September 15, 2008 7:45:48 AM<br>
&gt;&gt; &gt;&gt; &gt; Subject: Re: [MAPSERVER-USERS] Debian Oracle10g OCI<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; You have to recompile mapserver with the:<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; --with-oraclespatial=[path to oracle home]<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; option. That&#39;s all that is needed to enable oracle spatial support in<br>
&gt;&gt; &gt;&gt; &gt; mapserver.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; HTH,<br>
&gt;&gt; &gt;&gt; &gt; Umberto<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; On Mon, Sep 15, 2008 at 2:05 PM, dzizes wrote:<br>
&gt;&gt; &gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &gt; Hi,<br>
&gt;&gt; &gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &gt; I&#39;ve installed mapserver on Debian (lenny distribution). I&#39;ve<br>
&gt;&gt; &gt;&gt; &gt; &gt; managed<br>
&gt;&gt; &gt;&gt; &gt; &gt; to<br>
&gt;&gt; &gt;&gt; &gt; &gt; create mapfile based on shp data and successfully send a wms<br>
&gt;&gt; &gt;&gt; &gt; &gt; request<br>
&gt;&gt; &gt;&gt; &gt; &gt; to get<br>
&gt;&gt; &gt;&gt; &gt; &gt; a map. I seems that mapserver works fine.<br>
&gt;&gt; &gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &gt; I&#39;ve also installed oracle-ex and I can connect to my Oracle via<br>
&gt;&gt; &gt;&gt; &gt; &gt; sqlplus.<br>
&gt;&gt; &gt;&gt; &gt; &gt; However, when I request wms (to a map file pointing to Oracle10g) I<br>
&gt;&gt; &gt;&gt; &gt; &gt; receive<br>
&gt;&gt; &gt;&gt; &gt; &gt; the following:<br>
&gt;&gt; &gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &gt; msDrawMap(): Image handling error. Failed to draw layer named<br>
&gt;&gt; &gt;&gt; &gt; &gt; &#39;test&#39;.<br>
&gt;&gt; &gt;&gt; &gt; &gt; msOracleSpatialLayerOpen(): OracleSpatial error. OracleSpatial is<br>
&gt;&gt; &gt;&gt; &gt; &gt; not<br>
&gt;&gt; &gt;&gt; &gt; &gt; supported<br>
&gt;&gt; &gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &gt; I&#39;ve found that I need OCI installed and configured properly, but<br>
&gt;&gt; &gt;&gt; &gt; &gt; there is<br>
&gt;&gt; &gt;&gt; &gt; &gt; no clear tutorial.<br>
&gt;&gt; &gt;&gt; &gt; &gt; Please provide me a some step by step guide.<br>
&gt;&gt; &gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &gt; Greets,<br>
&gt;&gt; &gt;&gt; &gt; &gt; Michal<br>
&gt;&gt; &gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &gt; --<br>
&gt;&gt; &gt;&gt; &gt; &gt; View this message in context:<br>
&gt;&gt; &gt;&gt; &gt; <a href="http://www.nabble.com/Debian-Oracle10g-OCI-tp19491636p19491636.html" target="_blank">http://www.nabble.com/Debian-Oracle10g-OCI-tp19491636p19491636.html</a><br>
&gt;&gt; &gt;&gt; &gt; &gt; Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
&gt;&gt; &gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; &gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; &gt; &gt; mapserver-users mailing list<br>
&gt;&gt; &gt;&gt; &gt; &gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt;&gt; &gt;&gt; &gt; &gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt;&gt; &gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; &gt; mapserver-users mailing list<br>
&gt;&gt; &gt;&gt; &gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt;&gt; &gt;&gt; &gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; mapserver-users mailing list<br>
&gt;&gt; &gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt;&gt; &gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>