- This document provides a bash script to facilitate building the SOCI library with Oracle on Linux systems.
What is SOCI?
SOCI is a C++ database access library that supports various database backends.
Tested Environment
- Ubuntu 22.04
- Oracle Instant Client build results:
- Instant Client 19: Success
- Instant Client 21: Success
- Instant Client 23:
FailureSuccess
- Oracle Instant Client build results:
Setup Instructions
-
Configure the Instant Client directory in the
build.shfile:# TODO: Set your Instant Client directory # Example for Instant Client 19 export CMAKE_ORACLE_INCLUDE_DIR=/home/oracle/19/instantclient_19_24/sdk/include export CMAKE_ORACLE_OCCI_LIBRARY=/home/oracle/19/instantclient_19_24
-
Define the installation directory. If not specified, the default path will be used:
cmake -DCMAKE_INSTALL_PREFIX=/your/custom/path
- Default directories:
- Include files (
*.h):/usr/include/soci - Library files (
*.so,*.a):/usr/local/lib64
- Include files (
- Default directories:
License