README.md in embulk-output-oracle-0.2.2 vs README.md in embulk-output-oracle-0.2.3

- old
+ new

@@ -60,8 +60,51 @@ ``` $ ./gradlew gem ``` -For Windows(x64), you can build cpp library by "src/main/cpp/win/build.bat". +#### Build environment for native library -For Linux, you can build cpp library by "src/main/cpp/linux/build.sh". +For Windows (x64) + +(1) Install JDK. + +(2) Install Microsoft Visual Studio (only 2010 is tested). + +(3) Install Oracle Instant Client SDK 11.1.0.6.0 for Microsoft Windows (x64). + +(4) Set environment variables. + +* JAVA_HOME +* OCI\_SDK_PATH ("sdk" directory of Oracle Instant Client) + +(5) Open src/main/cpp/win/embulk-output-oracle.sln by Visual Studio and build. + +For Windows command line, the following are needed in addition to (1) - (4). + +(6) Set environment variables. + +* MSVC_PATH (ex. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC) +* MSSDK_PATH (ex. C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A) + +(7) Execute src/main/cpp/win/build.bat . + + +For Linux (x64) (only Ubuntu Server 14.04 is tested) + +(1) Install JDK. + +(2) Install gcc and g++ . + +(3) Install Oracle Instant Client Basic and SDK 11.1.0.6.0 for Linux (x64). + +(4) Create symbolic links of OCI libraries. + + ln -s libocci.so.11.1 libocci.so + ln -s libclntsh.so.11.1 libclntsh.so + +(5) Set environment variables. + +* JAVA_HOME +* OCI_PATH (the directory of Oracle Instant Client Basic and the parent of the "sdk" directory) + +(6) Execute src/main/cpp/linux/build.sh .