Changes between Initial Version and Version 1 of Ticket #39393


Ignore:
Timestamp:
Jun 9, 2013, 12:19:49 AM (11 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

No, the Apache envvars file is considered a configuration file, and MacPorts does not typically modify your configuration files for you.

Are you certain your ports are up to date? ("sudo port selfupdate" and "sudo port upgrade outdated") It was my understanding that with the current version of the port on OS X 10.5 and later it should no longer be necessary to do that, which is why on 10.5 and later the notes of the oracle-instantclient port currently read:

$ port notes oracle-instantclient
oracle-instantclient has the following notes:
  If you previously set DYLD_LIBRARY_PATH=/opt/local/lib/oracle in your environment, you can remove it; it is no longer needed with this version of oracle-instantclient.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39393

    • Property Owner changed from macports-tickets@… to ryandesign@…
  • Ticket #39393 – Description

    initial v1  
    11After installing the php5-oracle and oracle-instantclient ports on a number of machines, I have found by trial and error that these ports require the following line to be added to /opt/local/apache2/bin/envvars:
     2{{{
    23export DYLD_LIBRARY_PATH = "/opt/local/lib/oracle/:$DYLD_LIBRARY_PATH"
     4}}}
    35
    46If this line is missing in envvars, you will see the following error in the Apache or PHP  error log:
     7{{{
    58"PHP Warning: oci_connect: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that the DYLD_LIBRARY_PATH includes the directory with the Oracle Instant Client libraries in..."
     9}}}
    610
    711Would it be possible to make the port installation add this line to envvars?