2014-03-05 134 views
0

我用PECL在Mac OS X 10.7上安裝了OCI8擴展。然而,PHP將不會加載它:加載PHP OCI8擴展時出錯

Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/oci8.so' - dlopen(/usr/local/lib/php/extensions/no-debug-non-zts-20100525/oci8.so, 9): Library not loaded: /ade/b/2649109290/oracle/rdbms/lib/libclntsh.dylib.11.1 Referenced from: /usr/local/lib/php/extensions/no-debug-non-zts-20100525/oci8.so Reason: image not found in Unknown on line 0a

任何人都有這樣的經歷?我可能會錯過什麼?

回答

0

考慮手動將oci8.so設置爲/usr/local/lib/php/extensions/no-debug-non-zts-20100525/

此外,按照this topic中給出的建議,您可以嘗試去/usr/local/lib/php.ini,試圖找到extension=oci8.so語句並將其註釋掉(如果找到)。

最後,如果上述兩種方法都不起作用,請檢查this article