php-oracle workaround

Ryan Schmidt ryandesign at macports.org
Fri Sep 4 13:59:56 PDT 2009


On Aug 28, 2009, at 16:26, John Korchok wrote:

> After installing the new Oracle PHP port, I was getting an error:
>
> Warning: oci_connect() [function.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 /Library/WebServer/Documents/Admin/getConnection.php on  
> line 3
>
> To get the new port running on my server, I had to add the following  
> to
> /opt/local/apache2/bin/envvars:
>
> DYLD_LIBRARY_PATH=/opt/local/lib/oracle
> export DYLD_LIBRARY_PATH
>
> /opt/local/lib/oracle is the path to the Oracle Instant Client. Now  
> it works
> fine.

Thanks for reminding me of this. I've now added a message to the  
oracle-instantclient port telling users to set this in their  
environment.




More information about the macports-users mailing list