You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My english is not good. I tried my best to explain the problem.
Description:
Trying to enable the OCI8 extension on arm64 machines in Laradock by changing WORKSPACE_INSTALL_OCI8 or PHP_FPM_INSTALL_OCI8 env variables to true will result to an error.
Expected Behavior:
Install the instantclient and enable the oci8 extension on php with no errors.
Context information:
Output of git rev-parse HEAD
a2dd97674f76e114717e9ff1e98f3912d053c96d
Output of docker version
Docker version 20.10.14, build a224086
Output of docker-compose version
Docker Compose version v2.4.1
System info: Mac, Windows or Linux. Include which disto/version
Mac, Darwin 21.4.0 arm64
Steps to reproduce the issue:
Git clone the laradock repo.
Copy .env.example to .env
Change WORKSPACE_INSTALL_OCI8=true and COMPOSE_PROJECT_NAME to something different than the default value.
Run docker-compose build workspace
Stacktrace & Additional info:
[+] Building 143.4s (66/113)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 65.67kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/laradock/workspace:latest-8.0 2.0s
=> [auth] laradock/workspace:pull token for registry-1.docker.io 0.0s
=> [ 1/108] FROM docker.io/laradock/workspace:latest-8.0@sha256:19636a0 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 11.95kB 0.0s
=> CACHED [ 2/108] RUN if [ false=true ];then sed -i 's/ports.ub 0.0s => CACHED [ 3/108] RUN set -xe; apt-get update -yqq && pecl cha 0.0s => CACHED [ 4/108] RUN ln -snf /usr/share/zoneinfo/UTC /etc/localtime & 0.0s => CACHED [ 5/108] COPY ./aliases.sh /root/aliases.sh 0.0s => CACHED [ 6/108] COPY ./aliases.sh /home/laradock/aliases.sh 0.0s => CACHED [ 7/108] RUN sed -i 's/\r//' /root/aliases.sh && sed -i ' 0.0s
=> CACHED [ 8/108] RUN echo"">>~/.bashrc &&echo"# Load Custom 0.0s => CACHED [ 9/108] COPY ./composer.json /home/laradock/.composer/compos 0.0s => CACHED [ 10/108] COPY ./auth.json /home/laradock/.composer/auth.json 0.0s => CACHED [ 11/108] RUN chown -R laradock:laradock /home/laradock/.compo 0.0s => CACHED [ 12/108] RUN echo "" >> ~/.bashrc && echo 'export PATH="$ 0.0s
=> CACHED [ 13/108] RUN set -eux;if [ "2"="1" ] || [ "2"="2" 0.0s
=> CACHED [ 14/108] RUN if [ true=true ];then composer global ins 0.0s
=> CACHED [ 15/108] RUN if [ false=false ];then rm /home/laradock 0.0s
=> CACHED [ 16/108] RUN if [ ];then composer config -g repo.packag 0.0s
=> CACHED [ 17/108] RUN echo"">>~/.bashrc &&echo'export PATH="~ 0.0s => CACHED [ 18/108] RUN echo "" >> ~/.bashrc && echo 'export PATH="/ 0.0s => [ 19/108] COPY ./crontab /etc/cron.d 0.1s => [ 20/108] RUN chmod -R 644 /etc/cron.d 1.0s => [ 21/108] RUN if [ false = true ]; then apt-get -qq -y install my 0.3s => [ 22/108] RUN if [ false = true ]; then curl -fsSL -o /usr/local/ 0.3s => [ 23/108] RUN set -eux; if [ false = true ]; then apt-get - 0.3s => [ 24/108] RUN set -eux; if [ false = true ]; then apt-get 0.3s => [ 25/108] RUN if [ false = true ]; then apt-get install -yqq pkg-co 0.2s => [ 26/108] COPY ./xdebug.ini /etc/php/8.0/cli/conf.d/xdebug.ini 0.0s => [ 27/108] RUN if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then 0.4s => [ 28/108] RUN sed -i "s/xdebug.cli_color=0/xdebug.cli_color=1/" /etc/ 0.3s => [ 29/108] RUN if [ false = true ]; then if [ $(php -r "echo PHP_MAJ 0.3s => [ 30/108] RUN if [ false = true ]; then apt-get install -y --forc 0.3s => [ 31/108] RUN if [ false = false -a false = true ]; then curl -L 0.3s => [ 32/108] COPY insecure_id_rsa /tmp/id_rsa 0.0s => [ 33/108] COPY insecure_id_rsa.pub /tmp/id_rsa.pub 0.0s => [ 34/108] RUN if [ false = true ]; then rm -f /etc/service/sshd/d 0.1s => [ 35/108] RUN if [ false = true ]; then apt-get install -yqq pkg- 0.3s => [ 36/108] RUN if [ false = true ]; then apt-get install -yqq libr 0.3s => [ 37/108] RUN if [ false = true ]; then if [ $(php -r "echo PHP_M 0.3s => [ 38/108] RUN if [ false = true ]; then add-apt-repository -y ppa 0.3s => [ 39/108] RUN if [ true = true ]; then apt-get install -yqq php8. 3.7s => [ 40/108] RUN set -eux; if [ false = true ]; then if [ $(ph 0.2s => [ 41/108] RUN set -eux;if [ false=true ];thenif [ $(ph 0.3s => [ 42/108] RUN if [ "false"=true ];thenif [ $(php -r "echo PHP 0.3s => [ 43/108] RUN if [ false = true ]; then apt-get -yqq install libp 0.3s => [ 44/108] RUN if [ false = true ]; then if [ $(php -r "echo PHP_M 0.3s => [ 45/108] RUN if [ true = true ]; then if [ $(php -r "echo PHP_MA 7.9s => [ 46/108] RUN if [ false = true ]; then apt-key adv --keyserver k 0.3s => [ 47/108] RUN if [ false = true ]; then apt-get install -yqq grap 0.3s => [ 48/108] RUN if [ false = true ]; then if [ $(php -r "echo PHP_M 0.3s => [ 49/108] RUN if [ false = true ]; then apt-get -y install mysql- 0.3s => [ 50/108] RUN if [ true = true ]; then mkdir -p /home/laradock/. 80.7s => [ 51/108] RUN if [ true = true ]; then echo "" >> ~/.bashrc && 0.3s => [ 52/108] RUN if [ true = true ]; then echo "" >> ~/.bashrc && 0.3s => [ 53/108] RUN if [ true = true ]; then find /home/laradock/.nvm - 0.3s => [ 54/108] RUN if [ ]; then . ~/.bashrc && npm config set registr 0.3s => [ 55/108] COPY ./.npmrc /root/.npmrc 0.0s => [ 56/108] COPY ./.npmrc /home/laradock/.npmrc 0.0s => [ 57/108] RUN if [ false = true ]; then npx pnpm add -g pnpm ;fi 0.1s => [ 58/108] RUN if [ true = true ]; then [ -s "/home/laradock/.nvm/ 4.4s => [ 59/108] RUN if [ true=true ];thenecho"">>~/.bashrc && 0.3s => [ 60/108] RUN set -xe;if [ false=true ];then apt-get -y ins 0.3s => ERROR [ 61/108] RUN if [ true=true ];then apt-get update && apt 34.4s------ > [ 61/108] RUN if [ true = true ]; then apt-get update && apt-get install --no-install-recommends -y wget && mkdir /opt/oracle && cd /opt/oracle && wget https://github.com/diogomascarenha/oracle-instantclient/raw/master/instantclient-basic-linux.x64-12.1.0.2.0.zip && wget https://github.com/diogomascarenha/oracle-instantclient/raw/master/instantclient-sdk-linux.x64-12.1.0.2.0.zip && unzip /opt/oracle/instantclient-basic-linux.x64-12.1.0.2.0.zip -d /opt/oracle && unzip /opt/oracle/instantclient-sdk-linux.x64-12.1.0.2.0.zip -d /opt/oracle && ln -s /opt/oracle/instantclient_12_1/libclntsh.so.12.1 /opt/oracle/instantclient_12_1/libclntsh.so && ln -s /opt/oracle/instantclient_12_1/libclntshcore.so.12.1 /opt/oracle/instantclient_12_1/libclntshcore.so && ln -s /opt/oracle/instantclient_12_1/libocci.so.12.1 /opt/oracle/instantclient_12_1/libocci.so && rm -rf /opt/oracle/*.zip && apt-get update && apt-get install --no-install-recommends -y libaio-dev && if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-2.0.12; elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-2.2.0; elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "80000" ]; then echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-3.0.1; else echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8; fi && echo "extension=oci8.so" >> /etc/php/8.0/cli/php.ini && php -m | grep -q 'oci8' ;fi:#0 1.063 Hit:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease#0 1.664 Hit:2 http://ports.ubuntu.com/ubuntu-ports focal InRelease#0 1.965 Get:3 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]#0 3.092 Get:4 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [108 kB]#0 3.604 Get:5 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [114 kB]#0 3.913 Get:6 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 Packages [1,509 kB]#0 4.710 Get:7 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 Packages [1,090 kB]#0 4.948 Get:8 http://ports.ubuntu.com/ubuntu-ports focal-security/main Sources [276 kB]#0 4.973 Get:9 http://ports.ubuntu.com/ubuntu-ports focal-security/main arm64 Packages [1,157 kB]#0 5.135 Fetched 4,369 kB in 5s (911 kB/s)#0 5.135 Reading package lists...#0 5.595 Reading package lists...#0 5.971 Building dependency tree...#0 6.048 Reading state information...#0 6.151 The following NEW packages will be installed:#0 6.151 wget#0 6.677 0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.#0 6.677 Need to get 331 kB of archives.#0 6.677 After this operation, 987 kB of additional disk space will be used.#0 6.677 Get:1 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 wget arm64 1.20.3-1ubuntu2 [331 kB]#0 8.499 Fetched 331 kB in 2s (204 kB/s)#0 8.513 Selecting previously unselected package wget.(Reading database ... 28330 files and directories currently installed.)#0 8.571 Preparing to unpack .../wget_1.20.3-1ubuntu2_arm64.deb ...#0 8.572 Unpacking wget (1.20.3-1ubuntu2) ...#0 8.609 Setting up wget (1.20.3-1ubuntu2) ...#0 8.614 Processing triggers for man-db (2.9.1-1) ...#0 8.673 --2022-04-27 16:19:20-- https://github.com/diogomascarenha/oracle-instantclient/raw/master/instantclient-basic-linux.x64-12.1.0.2.0.zip#0 8.674 Resolving github.com (github.com)... 20.201.28.151#0 8.676 Connecting to github.com (github.com)|20.201.28.151|:443... connected.#0 8.771 HTTP request sent, awaiting response... 302 Found#0 8.999 Location: https://raw.githubusercontent.com/diogomascarenha/oracle-instantclient/master/instantclient-basic-linux.x64-12.1.0.2.0.zip [following]#0 9.000 --2022-04-27 16:19:20-- https://raw.githubusercontent.com/diogomascarenha/oracle-instantclient/master/instantclient-basic-linux.x64-12.1.0.2.0.zip#0 9.000 Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...#0 9.053 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.#0 9.176 HTTP request sent, awaiting response... 200 OK#0 11.46 Length: 63352239 (60M) [application/zip]#0 11.46 Saving to: ‘instantclient-basic-linux.x64-12.1.0.2.0.zip’#0 11.46 #0 11.46 0K .......... .......... .......... .......... .......... 0% 772K 80s### I removed part part of the download stack because github said my comment is too long...#0 19.10 61250K .......... .......... .......... .......... .......... 99% 9.40M 0s#0 19.10 61300K .......... .......... .......... .......... .......... 99% 21.9M 0s#0 19.11 61350K .......... .......... .......... .......... .......... 99% 14.2M 0s#0 19.11 61400K .......... .......... .......... .......... .......... 99% 15.2M 0s#0 19.11 61450K .......... .......... .......... .......... .......... 99% 3.42M 0s#0 19.13 61500K .......... .......... .......... .......... .......... 99% 15.5M 0s#0 19.13 61550K .......... .......... .......... .......... .......... 99% 7.00M 0s#0 19.14 61600K .......... .......... .......... .......... .......... 99% 48.2M 0s#0 19.14 61650K .......... .......... .......... .......... .......... 99% 9.44M 0s#0 19.14 61700K .......... .......... .......... .......... .......... 99% 17.2M 0s#0 19.15 61750K .......... .......... .......... .......... .......... 99% 11.7M 0s#0 19.15 61800K .......... .......... .......... .......... .......... 99% 14.2M 0s#0 19.15 61850K .......... ....... 100% 17.4M=7.7s#0 19.15 #0 19.15 2022-04-27 16:19:31 (7.85 MB/s) - ‘instantclient-basic-linux.x64-12.1.0.2.0.zip’ saved [63352239/63352239]#0 19.15 #0 19.16 --2022-04-27 16:19:31-- https://github.com/diogomascarenha/oracle-instantclient/raw/master/instantclient-sdk-linux.x64-12.1.0.2.0.zip#0 19.16 Resolving github.com (github.com)... 20.201.28.151#0 19.16 Connecting to github.com (github.com)|20.201.28.151|:443... connected.#0 19.24 HTTP request sent, awaiting response... 302 Found#0 19.58 Location: https://raw.githubusercontent.com/diogomascarenha/oracle-instantclient/master/instantclient-sdk-linux.x64-12.1.0.2.0.zip [following]#0 19.58 --2022-04-27 16:19:31-- https://raw.githubusercontent.com/diogomascarenha/oracle-instantclient/master/instantclient-sdk-linux.x64-12.1.0.2.0.zip#0 19.58 Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...#0 19.58 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.#0 19.72 HTTP request sent, awaiting response... 200 OK#0 20.09 Length: 667174 (652K) [application/zip]#0 20.09 Saving to: ‘instantclient-sdk-linux.x64-12.1.0.2.0.zip’#0 20.09 #0 20.09 0K .......... .......... .......... .......... .......... 7% 725K 1s#0 20.16 50K .......... .......... .......... .......... .......... 15% 1.69M 1s#0 20.19 100K .......... .......... .......... .......... .......... 23% 952K 1s#0 20.24 150K .......... .......... .......... .......... .......... 30% 3.83M 0s#0 20.25 200K .......... .......... .......... .......... .......... 38% 1.30M 0s#0 20.29 250K .......... .......... .......... .......... .......... 46% 5.31M 0s#0 20.30 300K .......... .......... .......... .......... .......... 53% 6.08M 0s#0 20.31 350K .......... .......... .......... .......... .......... 61% 7.49M 0s#0 20.31 400K .......... .......... .......... .......... .......... 69% 7.48M 0s#0 20.32 450K .......... .......... .......... .......... .......... 76% 12.3M 0s#0 20.32 500K .......... .......... .......... .......... .......... 84% 2.29M 0s#0 20.35 550K .......... .......... .......... .......... .......... 92% 2.17M 0s#0 20.37 600K .......... .......... .......... .......... .......... 99% 11.4M 0s#0 20.37 650K . 100% 2932G=0.3s#0 20.37 #0 20.37 2022-04-27 16:19:32 (2.25 MB/s) - ‘instantclient-sdk-linux.x64-12.1.0.2.0.zip’ saved [667174/667174]#0 20.37 #0 20.38 Archive: /opt/oracle/instantclient-basic-linux.x64-12.1.0.2.0.zip#0 20.38 inflating: /opt/oracle/instantclient_12_1/adrci #0 20.38 inflating: /opt/oracle/instantclient_12_1/BASIC_README #0 20.38 inflating: /opt/oracle/instantclient_12_1/genezi #0 20.38 inflating: /opt/oracle/instantclient_12_1/libclntshcore.so.12.1 #0 20.46 inflating: /opt/oracle/instantclient_12_1/libclntsh.so.12.1 #0 20.91 inflating: /opt/oracle/instantclient_12_1/libipc1.so #0 20.92 inflating: /opt/oracle/instantclient_12_1/libmql1.so #0 20.93 inflating: /opt/oracle/instantclient_12_1/libnnz12.so #0 20.98 inflating: /opt/oracle/instantclient_12_1/libocci.so.12.1 #0 21.00 inflating: /opt/oracle/instantclient_12_1/libociei.so #0 21.83 inflating: /opt/oracle/instantclient_12_1/libocijdbc12.so #0 21.83 inflating: /opt/oracle/instantclient_12_1/libons.so #0 21.83 inflating: /opt/oracle/instantclient_12_1/liboramysql12.so #0 21.84 inflating: /opt/oracle/instantclient_12_1/ojdbc6.jar #0 21.86 inflating: /opt/oracle/instantclient_12_1/ojdbc7.jar #0 21.89 inflating: /opt/oracle/instantclient_12_1/uidrvci #0 21.89 inflating: /opt/oracle/instantclient_12_1/xstreams.jar #0 21.90 Archive: /opt/oracle/instantclient-sdk-linux.x64-12.1.0.2.0.zip#0 21.90 creating: /opt/oracle/instantclient_12_1/sdk/#0 21.90 creating: /opt/oracle/instantclient_12_1/sdk/include/#0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/ldap.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/ort.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/occi.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/odci.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/occiObjects.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/ocikpr.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/occiData.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/oci1.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/oci.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/ocidfn.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/ocidem.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/occiAQ.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/ori.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/ocidef.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/nzerror.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/orid.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/ocixmldb.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/nzt.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/ocixstream.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/orl.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/ociapr.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/oratypes.h #0 21.90 inflating: /opt/oracle/instantclient_12_1/sdk/include/occiControl.h #0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/include/occiCommon.h #0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/include/ociap.h #0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/include/oci8dp.h #0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/include/oro.h #0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/include/ociextp.h #0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/include/xa.h #0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/SDK_README #0 21.91 extracting: /opt/oracle/instantclient_12_1/sdk/ottclasses.zip #0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/ott #0 21.91 creating: /opt/oracle/instantclient_12_1/sdk/demo/#0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/demo/occidml.cpp #0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/demo/setuporamysql.sh #0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/demo/occiobj.typ #0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/demo/cdemo81.c #0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/demo/occiobj.cpp #0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/demo/occidemo.sql #0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/demo/oraaccess.xml #0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/demo/occidemod.sql #0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/demo/demo.mk #0 21.91 creating: /opt/oracle/instantclient_12_1/sdk/admin/#0 21.91 inflating: /opt/oracle/instantclient_12_1/sdk/admin/oraaccess.xsd #0 22.40 Hit:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease#0 22.44 Hit:2 http://ports.ubuntu.com/ubuntu-ports focal InRelease#0 22.66 Hit:3 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease#0 22.88 Hit:4 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease#0 23.16 Hit:5 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease#0 23.26 Reading package lists...#0 23.71 Reading package lists...#0 24.09 Building dependency tree...#0 24.16 Reading state information...#0 24.24 The following additional packages will be installed:#0 24.24 libaio1#0 24.25 The following NEW packages will be installed:#0 24.25 libaio-dev libaio1#0 24.77 0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.#0 24.77 Need to get 20.7 kB of archives.#0 24.77 After this operation, 95.2 kB of additional disk space will be used.#0 24.77 Get:1 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 libaio1 arm64 0.3.112-5 [7,072 B]#0 25.01 Get:2 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 libaio-dev arm64 0.3.112-5 [13.6 kB]#0 25.67 Fetched 20.7 kB in 1s (24.9 kB/s)#0 25.69 Selecting previously unselected package libaio1:arm64.(Reading database ... 28341 files and directories currently installed.)#0 25.70 Preparing to unpack .../libaio1_0.3.112-5_arm64.deb ...#0 25.70 Unpacking libaio1:arm64 (0.3.112-5) ...#0 25.72 Selecting previously unselected package libaio-dev:arm64.#0 25.72 Preparing to unpack .../libaio-dev_0.3.112-5_arm64.deb ...#0 25.72 Unpacking libaio-dev:arm64 (0.3.112-5) ...#0 25.74 Setting up libaio1:arm64 (0.3.112-5) ...#0 25.74 Setting up libaio-dev:arm64 (0.3.112-5) ...#0 25.75 Processing triggers for libc-bin (2.31-0ubuntu9.7) ...#0 25.83 Processing triggers for man-db (2.9.1-1) ...#0 28.91 downloading oci8-3.0.1.tgz ...#0 28.91 Starting to download oci8-3.0.1.tgz (190,882 bytes)#0 29.03 .........................................done: 190,882 bytes#0 30.29 13 source files, building#0 30.30 running: phpize#0 30.31 Configuring for:#0 30.31 PHP Api Version: 20200930#0 30.31 Zend Module Api No: 20200930#0 30.31 Zend Extension Api No: 420200930#0 30.67 Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client [autodetect] : building in /tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1#0 30.67 running: /tmp/pear/temp/oci8/configure --with-php-config=/usr/bin/php-config --with-oci8=instantclient,/opt/oracle/instantclient_12_1/#0 30.75 checking for grep that handles long lines and -e... /usr/bin/grep#0 30.75 checking for egrep... /usr/bin/grep -E#0 30.75 checking for a sed that does not truncate output... /usr/bin/sed#0 30.76 checking for pkg-config... /usr/bin/pkg-config#0 30.76 checking pkg-config is at least version 0.9.0... yes#0 30.76 checking for cc... cc#0 30.82 checking whether the C compiler works... yes#0 30.82 checking for C compiler default output file name... a.out#0 30.84 checking for suffix of executables...#0 30.87 checking whether we are cross compiling... no#0 30.89 checking for suffix of object files... o#0 30.91 checking whether we are using the GNU C compiler... yes#0 30.92 checking whether cc accepts -g... yes#0 30.96 checking for cc option to accept ISO C89... none needed#0 30.97 checking how to run the C preprocessor... cc -E#0 30.99 checking for icc... no#0 31.00 checking for suncc... no#0 31.00 checking for system library directory... lib#0 31.02 checking if compiler supports -Wl,-rpath,... yes#0 31.06 checking build system type... aarch64-unknown-linux-gnu#0 31.06 checking host system type... aarch64-unknown-linux-gnu#0 31.06 checking target system type... aarch64-unknown-linux-gnu#0 31.10 checking for PHP prefix... /usr#0 31.10 checking for PHP includes... -I/usr/include/php/20200930 -I/usr/include/php/20200930/main -I/usr/include/php/20200930/TSRM -I/usr/include/php/20200930/Zend -I/usr/include/php/20200930/ext -I/usr/include/php/20200930/ext/date/lib#0 31.10 checking for PHP extension directory... /usr/lib/php/20200930#0 31.10 checking for PHP installed headers prefix... /usr/include/php/20200930#0 31.11 checking if debug is enabled... no#0 31.12 checking if zts is enabled... no#0 31.12 checking for gawk... no#0 31.12 checking for nawk... nawk#0 31.12 checking if nawk is broken... no#0 31.12 checking for Oracle Database OCI8 support... yes, shared#0 31.12 checking PHP version... expr: syntax error: missing argument after '+'#0 31.12 /tmp/pear/temp/oci8/configure: line 4160: test: : integer expression expected#0 31.12 8.0, ok#0 31.13 checking OCI8 DTrace support... no#0 31.16 checking size of long... 8#0 31.16 checking if we're at 64-bit platform... yes#0 31.16 checking Oracle Instant Client directory... /opt/oracle/instantclient_12_1/#0 31.16 checking Oracle Instant Client SDK header directory... /opt/oracle/instantclient_12_1//sdk/include#0 31.17 checking Oracle Instant Client library version compatibility... 12.1#0 31.19 checking how to print strings... printf#0 31.19 checking for a sed that does not truncate output... (cached) /usr/bin/sed#0 31.19 checking for fgrep... /usr/bin/grep -F#0 31.20 checking for ld used by cc... /usr/bin/ld#0 31.20 checking if the linker (/usr/bin/ld) is GNU ld... yes#0 31.20 checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B#0 31.22 checking the name lister (/usr/bin/nm -B) interface... BSD nm#0 31.22 checking whether ln -s works... yes#0 31.22 checking the maximum length of command line arguments... 1572864#0 31.23 checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noop#0 31.23 checking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop#0 31.23 checking for /usr/bin/ld option to reload object files... -r#0 31.23 checking for objdump... objdump#0 31.23 checking how to recognize dependent libraries... pass_all#0 31.23 checking for dlltool... no#0 31.23 checking how to associate runtime and link libraries... printf %s\n#0 31.23 checking for ar... ar#0 31.25 checking for archiver @FILE support... @#0 31.25 checking for strip... strip#0 31.25 checking for ranlib... ranlib#0 31.25 checking for gawk... (cached) nawk#0 31.30 checking command to parse /usr/bin/nm -B output from cc object... ok#0 31.30 checking for sysroot... no#0 31.31 checking for a working dd... /usr/bin/dd#0 31.31 checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1#0 31.31 checking for mt... no#0 31.31 checking if : is a manifest tool... no#0 31.33 checking for dlfcn.h... yes#0 31.33 checking for objdir... .libs#0 31.39 checking if cc supports -fno-rtti -fno-exceptions... no#0 31.39 checking for cc option to produce PIC... -fPIC -DPIC#0 31.40 checking if cc PIC flag -fPIC -DPIC works... yes#0 31.46 checking if cc static flag -static works... yes#0 31.48 checking if cc supports -c -o file.o... yes#0 31.48 checking if cc supports -c -o file.o... (cached) yes#0 31.49 checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes#0 31.50 checking whether -lc should be explicitly linked in... no#0 31.54 checking dynamic linker characteristics... GNU/Linux ld.so#0 31.54 checking how to hardcode library paths into programs... immediate#0 31.54 checking whether stripping libraries is possible... yes#0 31.54 checking if libtool supports shared libraries... yes#0 31.54 checking whether to build shared libraries... yes#0 31.54 checking whether to build static libraries... no#0 31.57 configure: patching config.h.in#0 31.57 configure: creating ./config.status#0 31.81 config.status: creating config.h#0 31.81 config.status: executing libtool commands#0 31.84 running: make#0 31.84 /bin/bash /tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/libtool --mode=compile cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/include -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/main -I/tmp/pear/temp/oci8 -I/usr/include/php/20200930 -I/usr/include/php/20200930/main -I/usr/include/php/20200930/TSRM -I/usr/include/php/20200930/Zend -I/usr/include/php/20200930/ext -I/usr/include/php/20200930/ext/date/lib -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8.c -o oci8.lo#0 31.85 libtool: compile: cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/include -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/main -I/tmp/pear/temp/oci8 -I/usr/include/php/20200930 -I/usr/include/php/20200930/main -I/usr/include/php/20200930/TSRM -I/usr/include/php/20200930/Zend -I/usr/include/php/20200930/ext -I/usr/include/php/20200930/ext/date/lib -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8.c -fPIC -DPIC -o .libs/oci8.o#0 32.38 /bin/bash /tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/libtool --mode=compile cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/include -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/main -I/tmp/pear/temp/oci8 -I/usr/include/php/20200930 -I/usr/include/php/20200930/main -I/usr/include/php/20200930/TSRM -I/usr/include/php/20200930/Zend -I/usr/include/php/20200930/ext -I/usr/include/php/20200930/ext/date/lib -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8_lob.c -o oci8_lob.lo#0 32.39 libtool: compile: cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/include -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/main -I/tmp/pear/temp/oci8 -I/usr/include/php/20200930 -I/usr/include/php/20200930/main -I/usr/include/php/20200930/TSRM -I/usr/include/php/20200930/Zend -I/usr/include/php/20200930/ext -I/usr/include/php/20200930/ext/date/lib -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8_lob.c -fPIC -DPIC -o .libs/oci8_lob.o#0 32.66 /bin/bash /tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/libtool --mode=compile cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/include -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/main -I/tmp/pear/temp/oci8 -I/usr/include/php/20200930 -I/usr/include/php/20200930/main -I/usr/include/php/20200930/TSRM -I/usr/include/php/20200930/Zend -I/usr/include/php/20200930/ext -I/usr/include/php/20200930/ext/date/lib -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8_statement.c -o oci8_statement.lo#0 32.67 libtool: compile: cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/include -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/main -I/tmp/pear/temp/oci8 -I/usr/include/php/20200930 -I/usr/include/php/20200930/main -I/usr/include/php/20200930/TSRM -I/usr/include/php/20200930/Zend -I/usr/include/php/20200930/ext -I/usr/include/php/20200930/ext/date/lib -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8_statement.c -fPIC -DPIC -o .libs/oci8_statement.o#0 33.12 /bin/bash /tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/libtool --mode=compile cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/include -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/main -I/tmp/pear/temp/oci8 -I/usr/include/php/20200930 -I/usr/include/php/20200930/main -I/usr/include/php/20200930/TSRM -I/usr/include/php/20200930/Zend -I/usr/include/php/20200930/ext -I/usr/include/php/20200930/ext/date/lib -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8_collection.c -o oci8_collection.lo#0 33.13 libtool: compile: cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/include -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/main -I/tmp/pear/temp/oci8 -I/usr/include/php/20200930 -I/usr/include/php/20200930/main -I/usr/include/php/20200930/TSRM -I/usr/include/php/20200930/Zend -I/usr/include/php/20200930/ext -I/usr/include/php/20200930/ext/date/lib -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8_collection.c -fPIC -DPIC -o .libs/oci8_collection.o#0 33.37 /bin/bash /tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/libtool --mode=compile cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/include -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/main -I/tmp/pear/temp/oci8 -I/usr/include/php/20200930 -I/usr/include/php/20200930/main -I/usr/include/php/20200930/TSRM -I/usr/include/php/20200930/Zend -I/usr/include/php/20200930/ext -I/usr/include/php/20200930/ext/date/lib -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8_interface.c -o oci8_interface.lo#0 33.38 libtool: compile: cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/include -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/main -I/tmp/pear/temp/oci8 -I/usr/include/php/20200930 -I/usr/include/php/20200930/main -I/usr/include/php/20200930/TSRM -I/usr/include/php/20200930/Zend -I/usr/include/php/20200930/ext -I/usr/include/php/20200930/ext/date/lib -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8_interface.c -fPIC -DPIC -o .libs/oci8_interface.o#0 33.96 /bin/bash /tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/libtool --mode=compile cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/include -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/main -I/tmp/pear/temp/oci8 -I/usr/include/php/20200930 -I/usr/include/php/20200930/main -I/usr/include/php/20200930/TSRM -I/usr/include/php/20200930/Zend -I/usr/include/php/20200930/ext -I/usr/include/php/20200930/ext/date/lib -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8_failover.c -o oci8_failover.lo#0 33.98 libtool: compile: cc -I. -I/tmp/pear/temp/oci8 -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/include -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/main -I/tmp/pear/temp/oci8 -I/usr/include/php/20200930 -I/usr/include/php/20200930/main -I/usr/include/php/20200930/TSRM -I/usr/include/php/20200930/Zend -I/usr/include/php/20200930/ext -I/usr/include/php/20200930/ext/date/lib -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8_failover.c -fPIC -DPIC -o .libs/oci8_failover.o#0 34.07 /bin/bash /tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/libtool --mode=link cc -shared -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/include -I/tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/main -I/tmp/pear/temp/oci8 -I/usr/include/php/20200930 -I/usr/include/php/20200930/main -I/usr/include/php/20200930/TSRM -I/usr/include/php/20200930/Zend -I/usr/include/php/20200930/ext -I/usr/include/php/20200930/ext/date/lib -I/opt/oracle/instantclient_12_1//sdk/include -DHAVE_CONFIG_H -g -O2 -o oci8.la -export-dynamic -avoid-version -prefer-pic -module -rpath /tmp/pear/temp/pear-build-defaultuser6app65/oci8-3.0.1/modules oci8.lo oci8_lob.lo oci8_statement.lo oci8_collection.lo oci8_interface.lo oci8_failover.lo -Wl,-rpath,/opt/oracle/instantclient_12_1/ -L/opt/oracle/instantclient_12_1/ -lclntsh#0 34.11 libtool: link: cc -shared -fPIC -DPIC .libs/oci8.o .libs/oci8_lob.o .libs/oci8_statement.o .libs/oci8_collection.o .libs/oci8_interface.o .libs/oci8_failover.o -L/opt/oracle/instantclient_12_1/ -lclntsh -g -O2 -Wl,-rpath -Wl,/opt/oracle/instantclient_12_1/ -Wl,-soname -Wl,oci8.so -o .libs/oci8.so#0 34.11 /usr/bin/ld: skipping incompatible /opt/oracle/instantclient_12_1//libclntsh.so when searching for -lclntsh#0 34.11 /usr/bin/ld: cannot find -lclntsh#0 34.11 collect2: error: ld returned 1 exit status#0 34.12 make: *** [Makefile:226: oci8.la] Error 1#0 34.12 ERROR: `make' failed------failed to solve: executor failed running [/bin/sh -c if [ ${INSTALL_OCI8} = true ]; then apt-get update && apt-get install --no-install-recommends -y wget && mkdir /opt/oracle && cd /opt/oracle && wget ${ORACLE_INSTANT_CLIENT_MIRROR}instantclient-basic-linux.x64-12.1.0.2.0.zip && wget ${ORACLE_INSTANT_CLIENT_MIRROR}instantclient-sdk-linux.x64-12.1.0.2.0.zip && unzip /opt/oracle/instantclient-basic-linux.x64-12.1.0.2.0.zip -d /opt/oracle && unzip /opt/oracle/instantclient-sdk-linux.x64-12.1.0.2.0.zip -d /opt/oracle && ln -s /opt/oracle/instantclient_12_1/libclntsh.so.12.1 /opt/oracle/instantclient_12_1/libclntsh.so && ln -s /opt/oracle/instantclient_12_1/libclntshcore.so.12.1 /opt/oracle/instantclient_12_1/libclntshcore.so && ln -s /opt/oracle/instantclient_12_1/libocci.so.12.1 /opt/oracle/instantclient_12_1/libocci.so && rm -rf /opt/oracle/*.zip && apt-get update && apt-get install --no-install-recommends -y libaio-dev && if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-2.0.12; elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-2.2.0; elif [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "80000" ]; then echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8-3.0.1; else echo 'instantclient,/opt/oracle/instantclient_12_1/' | pecl install oci8; fi && echo "extension=oci8.so" >> /etc/php/${LARADOCK_PHP_VERSION}/cli/php.ini && php -m | grep -q 'oci8' ;fi]: exit code: 1
** Another issue **
Currently there is no arm64/aarch64 compatible version in the the repository that the Laradock Dockerfiles points to download the intantclient files. The owner of that repository needs to add the arm64 instantclient files. Another solution for this is fork that repository to the Laradock organization (or another account), add the arm64 files, update the Dockerfiles to point to this new repo and fetch upstream from time to time.
I would suggest to check the machine architecture and download the right files before install the oci8 extension.
I opened a pull request to add the arm64 instantclient files to that repo with no response from the maintainer until now.
Again, sorry for my english mistakes.
The text was updated successfully, but these errors were encountered:
Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.
Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.
Description:
Trying to enable the OCI8 extension on
arm64
machines in Laradock by changingWORKSPACE_INSTALL_OCI8
orPHP_FPM_INSTALL_OCI8
env variables totrue
will result to an error.Expected Behavior:
Install the instantclient and enable the oci8 extension on php with no errors.
Context information:
Output of
git rev-parse HEAD
Output of
docker version
Output of
docker-compose version
System info: Mac, Windows or Linux. Include which disto/version
Steps to reproduce the issue:
.env.example
to.env
WORKSPACE_INSTALL_OCI8=true
andCOMPOSE_PROJECT_NAME
to something different than the default value.docker-compose build workspace
Stacktrace & Additional info:
** Another issue **
Currently there is no
arm64/aarch64
compatible version in the the repository that the Laradock Dockerfiles points to download the intantclient files. The owner of that repository needs to add thearm64
instantclient files. Another solution for this is fork that repository to the Laradock organization (or another account), add thearm64
files, update the Dockerfiles to point to this new repo and fetch upstream from time to time.I would suggest to check the machine architecture and download the right files before install the oci8 extension.
I opened a pull request to add the
arm64
instantclient files to that repo with no response from the maintainer until now.The text was updated successfully, but these errors were encountered: