php - Oracle 即时客户端 DYLD_LIBRARY_PATH 错误

标签 php macos oracle xampp

我在 OSX 10.9 和 PHP 5.4.19 上使用 Xamppp for macos
我已经安装了 oracle Instantclient,我可以看到 oci8 在 phpinfo 中启用(如下):

OCI8 支持已启用
版本 1.4.9
修订 $Id:44bfa713983a99b3e59477f6532e5fb51b6dee94 $
事件持久连接 0
事件连接 0

我可以看到 DYLD_LIBRARY_PATH 也设置在我的 phpinfo 中。

DYLD_LIBRARY_PATH/usr/local/instantclient/11.2.0.3

但是当我尝试与 php 连接时,我现在两天都遇到了同样的错误:(

Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that DYLD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries in info.php on line 6 Warning: oci_connect(): Error while trying to retrieve text for error ORA-01804 in info.php on line 6



任何帮助都会很棒。
谢谢。

最佳答案

我第一次在 Mac OS/X 上安装 Instant Client 时遇到了类似的问题。

我找到了以下博客:

http://blog.caseylucas.com/2013/03/03/oracle-sqlplus-and-instant-client-on-mac-osx-without-dyld_library_path/

希望它也对你有用。

关于php - Oracle 即时客户端 DYLD_LIBRARY_PATH 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20116584/

相关文章:

sql - 创建作为常数值的季节和年份列表

mysql - MySql匹配的Oracle equalent函数是什么

php - 我需要在 schema.xml 中编写什么才能在 Solr 中的两个或多个字段中进行搜索?

macos - Xcode 5 不允许我导出未签名的 cocoa 应用程序

xcode - 从 swift osx 应用程序发送电子邮件

eclipse - 使用 Eclipse (MacOS) 将经过验证的提交签名到 GitHub (GPG)

php - 检查使用自定义表单请求类时是否存在任何验证错误

php - 我的 mysql 查询行出了问题

php - 具有循环引用的对象上的 in_array

sql - 转换一行中其他列中存在相同数据的列