[MacPorts] #13530: php5: add support for oracle / oci8
#13530: php5: add support for oracle / oci8 -------------------------------------+-------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.5.2 Keywords: | -------------------------------------+-------------------------------------- John Korchok requests that the php5 port should support oracle / oci8. This means we first need a port to install the oracle libraries, probably in the form of the freely-available [http://www.oracle.com/technology/tech/oci/instantclient/ instantclient]. I'm looking into this. -- Ticket URL: <https://trac.macports.org/projects/macports/ticket/13530> MacPorts </projects/macports> Ports system for Mac OS
#13530: php5: add support for oracle / oci8 --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.5.2 Resolution: | Keywords: --------------------------------------+------------------------------------- Comment (by ryandesign@macports.org): There are some problems with the instantclient: 1. It's a binary installation, and it's only available for PowerPC Macs at this time, not Intel Macs. There are [http://forums.oracle.com/forums/thread.jspa?threadID=481059 pages of complaints] about this in the forums. According to a message from an Oracle representative posted on page 8 of that thread, an Intel version will "hopefully" appear in Q1 CY2008. 1. The libraries are built to assume they reside in the path `/b/729/rdbms/lib`. Since this is clearly not going to be the case for any reasonable installation of MacPorts, we need to use something like `DYLD_FALLBACK_LIBRARY_PATH=${prefix}/lib/oracle` when configuring php5, which can be done, but also when running php5, which is more cumbersome, especially if php is running say as an apache web server module. A more interesting idea will be to see if I can get `install_name_tool` to work to change this path to `${prefix}/lib/oracle` within the dylibs themselves. 1. I understand that we cannot build our own libraries for Intel (or any other architecture) because Oracle does not make the source code available. 1. Downloading the libraries from the Oracle web site requires agreeing to a license agreement, so automated downloading through MacPorts may not work. If not, the user should visit the [http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/macs... downloads page], get the "basic" and "sdk" downloads and place them in `${prefix}/var/macports/distfiles/oracle`. John found some advice for [http://forums.oracle.com/forums/thread.jspa?messageID=1730326 compiling php using the instantclient] in the forums, some of which I am skeptical of however. -- Ticket URL: <https://trac.macports.org/projects/macports/ticket/13530#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#13530: php5: add support for oracle / oci8 --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.5.2 Resolution: | Keywords: --------------------------------------+------------------------------------- Comment (by ryandesign@macports.org): `install_name_tool` seems to be working great for fixing up those weird library paths. I added an oracle-instantclient port in r31834. -- Ticket URL: <https://trac.macports.org/projects/macports/ticket/13530#comment:2> MacPorts </projects/macports> Ports system for Mac OS
#13530: php5: add support for oracle / oci8 --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: enhancement | Status: new Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.5.2 Resolution: | Keywords: --------------------------------------+------------------------------------- Comment (by ryandesign@macports.org): Added a `+oracle` variant to the php5 port in r31835. Please wait 12 hours, then "`port selfupdate`", then try installing it with "`port install php5 +oracle`". If you want to try it sooner, then wait 30 minutes, then selfupdate, then run "`portindex`" in your dports directory. Then try installing it. The extent of my testing has been that the build completes properly and `function_exists()` reports that the oci_* functions now exist. I haven't actually tried to use any of them because I don't have an Oracle server to connect to. -- Ticket URL: <https://trac.macports.org/projects/macports/ticket/13530#comment:3> MacPorts </projects/macports> Ports system for Mac OS
#13530: php5: add support for oracle / oci8 --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: ryandesign@macports.org Type: enhancement | Status: closed Priority: Normal | Milestone: Port Enhancements Component: ports | Version: 1.5.2 Resolution: fixed | Keywords: --------------------------------------+------------------------------------- Changes (by ryandesign@macports.org): * status: new => closed * resolution: => fixed Comment: John has told me that this works so I'll close the ticket. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13530#comment:4> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts