File: install-ibm_db2.sh

package info (click to toggle)
php-doctrine-dbal 3.6.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,500 kB
  • sloc: php: 54,704; xml: 485; makefile: 42; sh: 24
file content (21 lines) | stat: -rwxr-xr-x 413 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash

set -ex

echo "Installing extension"
(
    cd /tmp

    wget https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz

    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/clidriver
    make -j "$(nproc)"
    sudo make install
)