繁体   English   中英

Ubuntu 18.04 编译php7.4

[英]Ubuntu 18.04 compile php7.4

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.

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

您的第一句话说您想要 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.

您可以从这里获得 Oracle Instant Client。 下载 SDK 以及 Basic 或 Basic Light package。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM