Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build ibm_db2 with a public driver #4834

Merged
merged 1 commit into from
Sep 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions ci/github/ext/install-ibm_db2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,18 @@ set -ex

echo "Installing extension"
(
# updating APT packages as per support recommendation
sudo apt-get -y -q update
sudo apt-get install ksh php-pear

cd /tmp

wget http://cdn1.netmake.com.br/download/Conexao/DB2/Linux/x64_v10.5fp8_linuxx64_dsdriver.tar.gz
wget https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz

tar xf x64_v10.5fp8_linuxx64_dsdriver.tar.gz
ksh dsdriver/installDSDriver
tar xf linuxx64_odbc_cli.tar.gz

pecl download ibm_db2
tar xf ibm_db2-*
rm ibm_db2-*.tgz
cd ibm_db2-*
phpize
./configure --with-IBM_DB2=/tmp/dsdriver
./configure --with-IBM_DB2=/tmp/clidriver
make -j "$(nproc)"
sudo make install
)