How to install OCI8 extension on PHP 7.4 on macOS Catalina or Big Sur?
问题 I already have PHP 7.4.11 and Apache 2.4.46 installed on my Mac via Homebrew. Then installed Oracle instant client & sqlplus (v19.3.0.0.0): $ brew tap InstantClientTap/instantclient $ brew install instantclient-basic $ brew install instantclient-sqlplus Next is to install the OCI8 extension, by running: pecl install oci8 PECL prompted me this: Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client