on master help sign in
added ocilib & oracle instant client library
commitb828b727b2c92db448f5412a90934f6b535c9373 authorThierry Bourrillon <thierry.bourrillon@gmail.com> dateWed 24 Aug 2016, 23:48 (10 years ago) parenta2760c9
1 file changed+21
debian-bootstrap.sh+21
debian-bootstrap.sh+21
@@ -134,3 +134,24 @@ update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
134134# GHC 8.0 requires LLVM 3.7 tools (specifically, llc-3.7 and opt-3.7).
135135update-alternatives --install "/usr/bin/llc" "llc" "/usr/bin/llc-3.7" 50
136136update-alternatives --install "/usr/bin/opt" "opt" "/usr/bin/opt-3.7" 50
137+
138+# install ocilib dependencies then build and install ocilib
139+cd /tmp \
140+ && wget https://storage.googleapis.com/oracle.fpinsight.com/instantClient/oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
141+ && dpkg -i oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
142+ && rm -f oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
143+ && wget https://storage.googleapis.com/oracle.fpinsight.com/instantClient/oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
144+ && dpkg -i oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
145+ && rm -f oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
146+ && wget https://github.com/vrogier/ocilib/archive/v4.2.1.tar.gz \
147+ && tar xvf v4.2.1.tar.gz \
148+ && cd /tmp/ocilib-4.2.1 \
149+ && ./configure --with-oracle-import=linkage \
150+ --with-oracle-charset=ansi \
151+ --with-oracle-headers-path=/usr/include/oracle/12.1/client64 \
152+ --with-oracle-lib-path=/usr/lib/oracle/12.1/client64/lib \
153+ && make \
154+ && make install \
155+ && ldconfig /usr/local/lib \
156+ && cd \
157+ && rm -rf /tmp/ocilib-4.2.1