'Oracle with PHP on Docker
I'm trying to install an Oracle database drive for my Laravel application. I'm using Laravel Sail to provide Docker.
The problem is that the Oracle driver can't build. This message occurs:
/usr/bin/ld: skipping incompatible /opt/oracle/instantclient_19_14/libclntsh.so when searching for -lclntsh
/usr/bin/ld: cannot find -lclntsh
/usr/bin/ld: skipping incompatible /opt/oracle/instantclient_19_14/libclntsh.so when searching for -lclntsh
collect2: error: ld returned 1 exit status
make: *** [Makefile:227: oci8.la] Error 1
ERROR: `make' failed
My dockerfile: https://pastebin.com/RTPWt1XK
I'm using MacBook Pro (v. 12 with M1)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
