Sha256: 75be5569fc8783bd7c0f2b6b52831feb96f2c6258b83525534290a2e4289ff12

Contents?: true

Size: 716 Bytes

Versions: 4

Compression:

Stored size: 716 Bytes

Contents

# gcc, g++ and Oracle Instant Client Basic and SDK are requred.
#
# ln libocci.so.x.x libocci.so
# ln libclntsh.so.x.x libclntsh.so
#

if [ "$JAVA_HOME" = "" ]
then
    echo "You should set the environment variable 'JAVA_HOME'."
    exit 1
fi

if [ "$OCI_PATH" = "" ]
then
    echo "You should set the environment variable 'OCI_PATH'."
    exit 1
fi

mkdir -p ../../../../lib/embulk/linux_x64

gcc -fPIC -I. -I"$JAVA_HOME/include" -I"$JAVA_HOME/include/linux" -I"$OCI_PATH/sdk/include" -I../../../main/cpp/common -L"$OCI_PATH" -shared ../../../main/cpp/common/embulk-output-oracle.cpp ../../../main/cpp/common/dir-path-load.cpp -locci -lclntsh -lstdc++ -o ../../../../lib/embulk/linux_x64/libembulk-output-oracle.so

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
embulk-output-oracle-0.4.5 src/main/cpp/linux/build.sh
embulk-output-oracle-0.4.4 src/main/cpp/linux/build.sh
embulk-output-oracle-0.4.3 src/main/cpp/linux/build.sh
embulk-output-oracle-0.4.2 src/main/cpp/linux/build.sh