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

cheesybiscuits thomaschristian at gmail.com
Thu Nov 15 17:14:31 PST 2012


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-support-configure-doesn-t-seem-to-know-where-to-look-tp5016804.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list