【问题标题】:Ubuntu 18.04 compile php7.4Ubuntu 18.04编译php7.4
【发布时间】:2020-05-27 10:17:38
【问题描述】:

Ubuntu 18.04源码安装php7.4时如何配置PgSQL支持? 编译信息:

./configure \
--prefix=/home/ubuntu/application/php7.4 \
--with-config-file-path=/home/ubuntu/application/php7.4/etc \
--with-fpm-user=www --with-fpm-group=www --with-fpm-systemd --with-openssl \
--with-kerberos --with-system-ciphers --with-external-pcre --with-pcre-jit \
--with-libxml --with-zlib --with-bz2 --with-curl --with-external-gd --with-webp \
--with-jpeg --with-xpm --with-freetype --with-gettext --with-gmp --with-mhash \
--with-imap --with-imap-ssl --with-mysql-sock --with-mysqli --with-pdo-dblib \
--with-pdo-firebird --with-pdo-mysql --with-zlib-dir --with-pspell \
--with-libedit --with-readline --with-pgsql --with-pdo-pgsql --with-pdo-oci \
--with-snmp --with-sodium --with-expat --with-xsl --with-zip --with-fpm-acl \
--with-valgrind --with-pear --with-cdb --with-iconv --enable-fpm \
--enable-fd-setsize=2048 --enable-embed --enable-phpdbg --enable-phpdbg-webhelper \
--enable-phpdbg-debug --enable-phpdbg-readline --enable-rtld-now --enable-sigchild \
--enable-dtrace --enable-libgcc --enable-werror --enable-bcmath --enable-calendar \
--enable-dba --enable-ftp --enable-gd --enable-gd-jis-conv --enable-intl \
--enable-json --enable-mbstring --enable-pcntl --enable-shmop --enable-simplexml \
--enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm \
--enable-mysqlnd --enable-sockets --enable-soap --enable-calendar --enable-dom \
--enable-exif --enable-fileinfo --enable-filter --enable-mbregex --enable-pdo \
--enable-session --enable-dmalloc --enable-mysqlnd-compression-support

错误信息:

configure: error: You need to tell me where to find your Oracle Instant Client SDK, or set 
ORACLE_HOME.

请问,这个怎么解决?谢谢!

【问题讨论】:

  • 如果安装了Oracle Client,请将环境变量ORACLE_HOME设置为已经安装的目录。

标签: php oracle ubuntu-18.04


【解决方案1】:

您的第一句话说您想要 PgSQL,但您已将其标记为“oracle”。您启用了很多扩展;你都需要吗?您要支持哪个数据库?

运行 ./configure --help 以查看用于 PDO_OCI 的语法:

  ...
  --with-pdo-oci[=DIR]    PDO: Oracle OCI support. DIR defaults to
                          $ORACLE_HOME. Use
                          --with-pdo-oci=instantclient,/path/to/instant/client/lib
                          for an Oracle Instant Client installation.

您可以从here 获取 Oracle Instant Client。下载 SDK 以及 Basic 或 Basic Light 包。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-29
    • 2019-04-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-11
    相关资源
    最近更新 更多