Changes between Version 6 and Version 7 of BuildingOnUnix


Ignore:
Timestamp:
Sep 28, 2010, 1:49:45 AM (14 years ago)
Author:
pastabolognese
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildingOnUnix

    v6 v7  
    4444
    4545
     46== OCI without installing Oracle ==
     47from (http://forums.oracle.com/forums/thread.jspa?messageID=4570333)
    4648
     49 * you don't have to install the instant client into the various /usr/... locations. It will work fine in a directory of your choosing. e.g. /home/matt/instantclient_11_2
     50 * oracle instant client has downloads for both RPMs and ZIP files. Note the RPMs will install into the /usr/... locations. The ZIPs have a structure where everything is in a single directory.
     51 * installing into a single directory in a user home avoids issues with permissions. Note that using "su" versus "sudo" can have implications for file permissions if you do ever install oracle instant client to the /usr/... directories as a regular user.
    4752
     53These steps worked for me on a Fedora system:
     54
     551.) download the 3 files related to oracle instant client:
     56instantclient-basic-linux32-11.2.0.1.zip
     57instantclient-sqlplus-linux32-11.2.0.1.zip
     58instantclient-sdk-linux32-11.2.0.1.zip
     59
     602.) unzip to a user location, e.g. /home/matt/instantclient_11_2
     61
     623.) export ORACLE_HOME=/home/matt/instantclient_11_2
     63
     644.) export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/matt/instantclient_11_2
     65
     665.) export PATH=$PATH:$ORACLE_HOME
     67
     686.) export NLS_LANG=American.America.WE8ISO8859P1 (this may not be essential)
     69
     707.) create symbolic links:
     71ln -s libclntsh.so.11.1 libclntsh.so
     72ln -s libocci.so.11.1 libocci.so
     73
     748.) run the configure script (from your GDAL directory, e.g. /home/matt/gdal-1.7.2):
     75./configure --with-oci-include=/home/matt/instantclient_11_2/sdk/include --with-oci-lib=/home/matt/instantclient_11_2
     76
     779.) run "make" from the same GDAL directory:
     78make
     79
     8010.) su
     81Password: ********
     82
     8311.) make install
     84
     8512.) exit (no ne