From 2039df23f6b36daa19fa0b041ccc8da3b3ec32fa Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Sat, 8 Jan 2022 14:31:10 +0800 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D1=80=D1=80=D0=B5=D0=BA=D1=82?= =?UTF-8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B0=20oci8=20(=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D0=BE=20=D1=87=D1=82=D0=BE=D0=B1=D1=8B=20?= =?UTF-8?q?=D0=B1=D1=8B=D0=BB=D0=BE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/730-oci8.sh_ | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/install/730-oci8.sh_ b/install/730-oci8.sh_ index 789d766..a2f8c41 100644 --- a/install/730-oci8.sh_ +++ b/install/730-oci8.sh_ @@ -1,6 +1,9 @@ #!/bin/bash -. "../src/01-common.sh" || exit 5 -title "Installing oci8..." +echo +echo "===============================================" +echo "Installing oci8..." +echo "===============================================" +echo #check for # wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basic-linuxx64.zip @@ -16,14 +19,19 @@ sudo mv ~/Downloads/instant_client/ /opt/oracle/ sudo sh -c "echo /opt/oracle/instant_client > /etc/ld.so.conf.d/oracle-instantclient.conf" sudo ldconfig -apti php-dev php-pear build-essential libaio1 default-jdk +sudo apt install -y --autoremove \ + php-dev \ + php-pear \ + build-essential \ + libaio1 \ + default-jdk sudo pecl channel-update pecl.php.net -#sudo pecl install oci8 # php8 -sudo pecl install oci8-2.2.0 # php7 +sudo pecl install oci8 # php8 +#sudo pecl install oci8-2.2.0 # php7 #sh -c "echo '; priority=10' > /etc/php/7.4/mods-available/oci8.ini" -sudo sh -c "echo 'extension=oci8.so' >> /etc/php/7.4/mods-available/oci8.ini" -sudo chmod 0644 /etc/php/7.4/mods-available/oci8.ini +# sudo sh -c "echo 'extension=oci8.so' >> /etc/php/7.4/mods-available/oci8.ini" +# sudo chmod 0644 /etc/php/7.4/mods-available/oci8.ini sudo phpenmod oci8 php -i | grep oci8 @@ -36,4 +44,4 @@ php -i | grep oci8 # https://pecl.php.net/package/oci8 -sudo pecl install oci8-2.2.0 +#sudo pecl install oci8-2.2.0