微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何将OCI8安装到现有的PHP?

根据这个 (从PECL安装OCI8,自动化),我所要做的就是inputpecl oci8 install 。

但是,这只会让我重复以下的错误

No releases available for package pecl.PHP.net/oci8 。

一个网站build议我试试pear install pecl/oci8 。 同样的错误发生。

在Linux上调用JNI代码时奇怪的崩溃; 我正确地编译我的共享库?

如何在linux中search具有空白区域的文件

SLURM:分配所有GPU后,不能再提交cpu作业

为什么我的系统调用的“猫”function比Linux的“猫”慢?

为什么我的Python应用程序停滞在“系统”/内核cpu时间

我该如何解决这个问题?

使用Linux作为主要开发人员桌面的优势

有没有办法使用Jenkins来运行交互式testing脚本(并让用户真正与之交互)?

未findjmap命令

如何在Linux中将Linux密钥从/ dev / input / event *转换为ASCII?

unix内置`pwd`命令和它的$ PWD环境variables有什么区别?

我在Ubuntu LTS 14.04上有同样的错误

~$ sudo pecl install oci8 No releases available for package "pecl.PHP.net/oci8" install Failed

最后原因是代理问题:我的电脑坐在公司代理服务器后面。 运行以下命令来添加代理

~$ sudo pear config-set http_proxy http://proxy.mycompany.com:8080/ config-set succeeded

然后再次运行该命令,它的工作原理如下

~$ sudo pecl install oci8 downloading oci8-2.0.8.tgz ... Starting to download oci8-2.0.8.tgz (190,854 bytes) ....done: 190,854 bytes 11 source files,building running: PHPize Configuring for: PHP Api Version: 20121113 Zend modulee Api No: 20121212 Zend Extension Api No: 220121212

在这里,我们输入以下的Oracle Instant客户端文件夹:

Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client [autodetect] : instantclient,/opt/oracle/instantclient_12_1

然后命令行继续输出

building in /tmp/pear/temp/pear-build-rootJafknN/oci8-2.0.8 running: /tmp/pear/temp/oci8/configure --with-oci8=instantclient,/opt/oracle/instantclient_12_1 checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E ... ... Build process completed successfully Installing '/usr/lib/PHP5/20121212/oci8.so' install ok: channel://pecl.PHP.net/oci8-2.0.8 configuration option "PHP_ini" is not set to PHP.ini location You should add "extension=oci8.so" to PHP.ini

祝你好运。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐