[gdal-dev] Problem compiling gdal with OCI support, configure doesn't seem to know where to look

Ethan Alpert ealpert at digitalglobe.com
Mon Nov 19 15:42:17 PST 2012


You sure your oracle client libs are installed correctly? It's strange
that oci.h would be in the top level directory.

--with-oci=/dg/local/apps/osgeo_pack/deployed/linux-x86_64/product/11gCl
ient/
--with-oci-include=/dg/local/apps/osgeo_pack/deployed/linux-x86_64/produ
ct/11gClient/rdbms/public/
--with-oci-lib=/dg/local/apps/osgeo_pack/deployed/linux-x86_64/product/1
1gClient/lib/

That's what I used for gdal 1.8.1.
/dg/local/apps/osgeo_pack/deployed/linux-x86_64 is my system deployed
path.

-ethan

-----Original Message-----
From: gdal-dev-bounces at lists.osgeo.org
[mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of cheesybiscuits
Sent: Thursday, November 15, 2012 6:15 PM
To: gdal-dev at lists.osgeo.org
Subject: [gdal-dev] Problem compiling gdal with OCI support, configure
doesn't seem to know where to look

First of all sorry for posing a question that has been asked a thousand
times before. I did a lot of research but didn't find this specific
problem.

I have Linux Mint (Ubuntu) with Oracle instant client basic and SDK
(11.2) installed from .deb (via Alien). $ORACLE_HOME is set
(/usr/lib/oracle/11.2/client) and contains bin, lib, and a symlink to
include (/usr/include/oracle/11.2/client). I'm not a total linux n00b
but I don't usually compile anything from source.

I installed the Oracle software using the instructions  here
<https://help.ubuntu.com/community/Oracle%20Instant%20Client>  

Running 'locate oci.h' shows 

/home/tom/Downloads/gdal/gdal-1.9.2/ogr/ogrsf_frmts/oci/drv_oci.html
/home/tom/Downloads/gdal/gdal-1.9.2/ogr/ogrsf_frmts/oci/ogr_oci.h
/usr/include/oracle/11.2/client/oci.h

As you can see I'm trying to compile 1.9.2 Stable.

No matter what I pass with the ./configure command, config.log always
reports
"configure:22485: checking for Oracle OCI headers in " - with nothing
after "in" - as if it doesn't know where the header is supposed to be,
and then
"conftest.cpp:64:29: fatal error: oci.h: No such file or directory"

These are the arguments I've tried

./configure --with-oci
./configure --with-oci-include='/usr/include/oracle/11.2/client'
./configure --with-oci=/usr/lib/oracle/11.2/client/include
./configure --with-oci=$ORACLE_HOME

I even tried copying the contents of /usr/lib/oracle/11.2/client/include
to the gdal source directory, but I'm not sure what I thought this would
accomplish.

Can anyone suggest where I could go next? Any thoughts much appreciated.



--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Problem-compiling-gdal-with-OCI-supp
ort-configure-doesn-t-seem-to-know-where-to-look-tp5016804.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

This electronic communication and any attachments may contain confidential and proprietary 
information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee 
responsible for delivering this communication to the intended recipient, or if you have received 
this communication in error, please do not print, copy, retransmit, disseminate or 
otherwise use the information. Please indicate to the sender that you have received this 
communication in error, and delete the copy you received. DigitalGlobe reserves the 
right to monitor any electronic communication sent or received by its employees, agents 
or representatives.



More information about the gdal-dev mailing list