on master help sign in
Merge pull request #1810 from fpinsight/master
dfa05ceAdam Bergmark
debian-bootstrap.sh+24
@@ -42,6 +42,7 @@ apt-get install -y \
42 freeglut3-dev \
42 freeglut3-dev \
43 git \
43 git \
44 libadns1-dev \
44 libadns1-dev \
45+ libaio1 \
45 libasound2-dev \
46 libasound2-dev \
46 libblas-dev \
47 libblas-dev \
47 libbz2-dev \
48 libbz2-dev \
@@ -134,3 +135,26 @@ update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
134# GHC 8.0 requires LLVM 3.7 tools (specifically, llc-3.7 and opt-3.7).
135# GHC 8.0 requires LLVM 3.7 tools (specifically, llc-3.7 and opt-3.7).
135update-alternatives --install "/usr/bin/llc" "llc" "/usr/bin/llc-3.7" 50
136update-alternatives --install "/usr/bin/llc" "llc" "/usr/bin/llc-3.7" 50
136update-alternatives --install "/usr/bin/opt" "opt" "/usr/bin/opt-3.7" 50
137update-alternatives --install "/usr/bin/opt" "opt" "/usr/bin/opt-3.7" 50
138+
139+# install ocilib dependencies then build and install ocilib
140+cd /tmp \
141+ && wget https://storage.googleapis.com/oracle.fpinsight.com/instantClient/oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
142+ && dpkg -i oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
143+ && rm -f oracle-instantclient12.1-basiclite_12.1.0.2.0-2_amd64.deb \
144+ && wget https://storage.googleapis.com/oracle.fpinsight.com/instantClient/oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
145+ && dpkg -i oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
146+ && rm -f oracle-instantclient12.1-devel_12.1.0.2.0-2_amd64.deb \
147+ && wget https://github.com/vrogier/ocilib/archive/v4.2.1.tar.gz \
148+ && tar xvf v4.2.1.tar.gz \
149+ && cd /tmp/ocilib-4.2.1 \
150+ && ./configure --with-oracle-import=linkage \
151+ --with-oracle-charset=ansi \
152+ --with-oracle-headers-path=/usr/include/oracle/12.1/client64 \
153+ --with-oracle-lib-path=/usr/lib/oracle/12.1/client64/lib \
154+ && make \
155+ && make install \
156+ && cd \
157+ && rm -rf /tmp/ocilib-4.2.1 \
158+ && echo "/usr/local/lib" > /etc/ld.so.conf.d/usr-local.conf \
159+ && echo "/usr/lib/oracle/12.1/client64/lib" > /etc/ld.so.conf.d/oracle-client.conf \
160+ && ldconfig