-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
104 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
# install deps | ||
sudo apt-get update -qq | ||
sudo apt-get -y install -qq build-essential unzip wget libaio1 | ||
|
||
# install oci8 libs & extension | ||
sudo mkdir -p /opt/oracle | ||
|
||
wget https://github.com/bumpx/oracle-instantclient/raw/master/instantclient-basic-linux.x64-12.1.0.2.0.zip | ||
wget https://github.com/bumpx/oracle-instantclient/raw/master/instantclient-sdk-linux.x64-12.1.0.2.0.zip | ||
|
||
sudo unzip -o ./instantclient-basic-linux.x64-12.1.0.2.0.zip -d /opt/oracle | ||
sudo unzip -o ./instantclient-sdk-linux.x64-12.1.0.2.0.zip -d /opt/oracle | ||
|
||
sudo ln -s /opt/oracle/instantclient/sqlplus /usr/bin/sqlplus | ||
sudo ln -s /opt/oracle/instantclient_12_1 /opt/oracle/instantclient | ||
sudo ln -s /opt/oracle/instantclient/libclntsh.so.12.1 /opt/oracle/instantclient/libclntsh.so | ||
sudo ln -s /opt/oracle/instantclient/libocci.so.12.1 /opt/oracle/instantclient/libocci.so | ||
|
||
sudo sh -c "echo 'instantclient,/opt/oracle/instantclient' | pecl install oci8-3.0.1" | ||
|
||
# setup ld library path | ||
sudo sh -c "echo '/opt/oracle/instantclient' >> /etc/ld.so.conf" | ||
sudo ldconfig | ||
|
||
# enable oci8 extension | ||
sudo sh -c "echo 'extension=oci8.so' >> /etc/php/8.0/cli/php.ini" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
# install deps | ||
sudo apt-get update -qq | ||
sudo apt-get -y install -qq build-essential unzip wget libaio1 | ||
|
||
# install oci8 libs & extension | ||
sudo mkdir -p /opt/oracle | ||
|
||
wget https://github.com/bumpx/oracle-instantclient/raw/master/instantclient-basic-linux.x64-12.1.0.2.0.zip | ||
wget https://github.com/bumpx/oracle-instantclient/raw/master/instantclient-sdk-linux.x64-12.1.0.2.0.zip | ||
|
||
sudo unzip -o ./instantclient-basic-linux.x64-12.1.0.2.0.zip -d /opt/oracle | ||
sudo unzip -o ./instantclient-sdk-linux.x64-12.1.0.2.0.zip -d /opt/oracle | ||
|
||
sudo ln -s /opt/oracle/instantclient/sqlplus /usr/bin/sqlplus | ||
sudo ln -s /opt/oracle/instantclient_12_1 /opt/oracle/instantclient | ||
sudo ln -s /opt/oracle/instantclient/libclntsh.so.12.1 /opt/oracle/instantclient/libclntsh.so | ||
sudo ln -s /opt/oracle/instantclient/libocci.so.12.1 /opt/oracle/instantclient/libocci.so | ||
|
||
sudo sh -c "echo 'instantclient,/opt/oracle/instantclient' | pecl install oci8-3.2.1" | ||
|
||
# setup ld library path | ||
sudo sh -c "echo '/opt/oracle/instantclient' >> /etc/ld.so.conf" | ||
sudo ldconfig | ||
|
||
# enable oci8 extension | ||
sudo sh -c "echo 'extension=oci8.so' >> /etc/php/8.1/cli/php.ini" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
# install deps | ||
sudo apt-get update -qq | ||
sudo apt-get -y install -qq build-essential unzip wget libaio1 | ||
|
||
# install oci8 libs & extension | ||
sudo mkdir -p /opt/oracle | ||
|
||
wget https://github.com/bumpx/oracle-instantclient/raw/master/instantclient-basic-linux.x64-12.1.0.2.0.zip | ||
wget https://github.com/bumpx/oracle-instantclient/raw/master/instantclient-sdk-linux.x64-12.1.0.2.0.zip | ||
|
||
sudo unzip -o ./instantclient-basic-linux.x64-12.1.0.2.0.zip -d /opt/oracle | ||
sudo unzip -o ./instantclient-sdk-linux.x64-12.1.0.2.0.zip -d /opt/oracle | ||
|
||
sudo ln -s /opt/oracle/instantclient/sqlplus /usr/bin/sqlplus | ||
sudo ln -s /opt/oracle/instantclient_12_1 /opt/oracle/instantclient | ||
sudo ln -s /opt/oracle/instantclient/libclntsh.so.12.1 /opt/oracle/instantclient/libclntsh.so | ||
sudo ln -s /opt/oracle/instantclient/libocci.so.12.1 /opt/oracle/instantclient/libocci.so | ||
|
||
sudo sh -c "echo 'instantclient,/opt/oracle/instantclient' | pecl install oci8" | ||
|
||
# setup ld library path | ||
sudo sh -c "echo '/opt/oracle/instantclient' >> /etc/ld.so.conf" | ||
sudo ldconfig | ||
|
||
# enable oci8 extension | ||
sudo sh -c "echo 'extension=oci8.so' >> /etc/php/8.2/cli/php.ini" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters