首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu 18.04编译php7.4

Ubuntu 18.04编译php7.4
EN

Stack Overflow用户
提问于 2020-05-26 10:56:03
回答 1查看 247关注 0票数 0

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

代码语言:javascript
复制
./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

错误消息:

代码语言:javascript
复制
configure: error: You need to tell me where to find your Oracle Instant Client SDK, or set 
ORACLE_HOME.

打扰一下,这个问题怎么解决?谢谢!

EN

回答 1

Stack Overflow用户

发布于 2020-05-27 10:17:38

你的第一句话说你想要PgSQL,但是你把它标记为'oracle‘。您启用了许多扩展;是否需要全部扩展?您正在尝试支持哪个数据库?

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

代码语言:javascript
复制
  ...
  --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包。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62013905

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档