Download and Install oracle-instantclient version 10.1.0.3 on Mac OS X
Friday the 25th of July, 2008

    oracle-instantclient  most recent diff


      View the most recent changes for the oracle-instantclient port at: oracle-instantclient.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for oracle-instantclient.
      The raw portfile for oracle-instantclient 10.1.0.3 is located here:
      http://oracle-instantclient.darwinports.com/dports/databases/oracle-instantclient/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/oracle-instantclient
      Google
      Web Darwinports.com



      # $Id: Portfile 36865 2008-05-17 02:49:21Z ryandesign macports.org $

      PortSystem 1.0

      Name: oracle-instantclient
      Version: 10.1.0.3
      Category: databases
      Platform: macosx
      Maintainers: ryandesign
      Homepage: http://www.oracle.com/technology/software/tech/oci/instantclient/
      use_zip yes
      set weird_prefix ""

      Description: Oracle database connection libraries

      Long Description: Oracle Instant Client allows you to run your applications without installing the standard Oracle client or having an ORACLE_HOME.

      platform powerpc {
      worksrcdir instantclient[join [lrange [split ${version} .] 0 1] _]
      set weird_prefix /b/729

      master_sites http://download.oracle.com/otn/mac/instantclient/

      distfiles instantclient-basic-macosx-${version}${extract.suffix} instantclient-sdk-macosx-${version}${extract.suffix}

      checksums instantclient-basic-macosx-${version}${extract.suffix} md5 5b38ab0565d6189d2069a4abe0bf2ab2 sha1 2f3aa35e99228fd08b686b19eba84ec34db8277b rmd160 d1f056f8f1b308c5493f4938b29b55fcb32452cf instantclient-sdk-macosx-${version}${extract.suffix} md5 79c7cb3f8afaff076fb20bad75b37cc9 sha1 486fe1c9a6c5cfc32401e72728ff821a50a22cf9 rmd160 c819db7f739b8ca468c8059dfbac31a6a6965938
      }

      platform i386 {
      pre-fetch {
      if {${os.major} < 9} {
      return -code error "${name} on Intel requires Mac OS X 10.5 or greater."
      }
      }

      version 10.2.0.4.0
      revision 1
      worksrcdir instantclient_[join [lrange [split ${version} .] 0 1] _]
      set weird_prefix /scratch/plebld/208

      master_sites http://download.oracle.com/otn/mac/instantclient/10204/

      distfiles instantclient-basic-macosx-${version}${extract.suffix} instantclient-sdk-macosx-${version}${extract.suffix}

      checksums instantclient-basic-macosx-${version}${extract.suffix} md5 383826be2873ece610da63b833eff052 sha1 91e408a580dc5a415e5906ff71c837d6a8b628c9 rmd160 fdd5d8a7d6034ba852a06ce378e1775f13a1519d instantclient-sdk-macosx-${version}${extract.suffix} md5 8aa52afeb9529d953c494e0233eb7c52 sha1 6f32cda591c61112c6f963698fdc829ab6a59e7f rmd160 e672eadc6fb0eccbe42cd49663128f011abfe493
      }

      use_configure no
      universal_variant no

      set lib_dir ${prefix}/lib/oracle

      build {
      # The pre-built libraries use weird prefixes and Oracle recommends setting
      # DYLD_LIBRARY_PATH to deal with this. I would rather fix the paths in the
      # libraries at install time.
      # Annoyingly, I can't do that for the Intel version right now because
      # install_name_tool says "malformed object (unknown load command 8)" (or 7).

      # For each dylib in the distribution, change the directory of its own
      # "soname" to our ${lib_dir}.
      foreach lib [glob -directory ${worksrcpath} *.dylib*] {
      system "install_name_tool -id ${lib_dir}/[strsed ${lib} /^.*\\///] ${lib}"

      # Then for each dependent dylib with a weird path that this dylib
      # references, fix the reference to use our ${lib_dir}.
      foreach dep [exec otool -L ${lib}] {
      if [string match "${weird_prefix}/*" ${dep}] {
      system "install_name_tool -change ${dep} ${lib_dir}/[strsed ${dep} /^.*\\///] ${lib}"
      }
      }
      }
      }

      destroot {
      xinstall -d ${destroot}${lib_dir}
      eval xinstall [glob -directory ${worksrcpath} *.dylib*] [glob -directory ${worksrcpath} *.jar] ${destroot}${lib_dir}

      # php5 +oracle complains without this symlink.
      ln -s libclntsh.dylib.10.1 ${destroot}${lib_dir}/libclntsh.dylib

      # You would think the includes should go in ${prefix}/include/oracle, but
      # the instantclient layout wants it in ${prefix}/lib/oracle/sdk/include
      xinstall -d ${destroot}${lib_dir}/sdk
      copy ${worksrcpath}/sdk/include ${destroot}${lib_dir}/sdk
      }

      livecheck.check regex
      livecheck.url ${homepage}htdocs/macsoft.html
      livecheck.regex instantclient-basic-macosx-(\[0-9.\]+)\\.zip

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/oracle-instantclient
      % sudo port install oracle-instantclient
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching oracle-instantclient
      ---> Verifying checksum for oracle-instantclient
      ---> Extracting oracle-instantclient
      ---> Configuring oracle-instantclient
      ---> Building oracle-instantclient with target all
      ---> Staging oracle-instantclient into destroot
      ---> Installing oracle-instantclient
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using oracle-instantclient with these commands:
      %  man oracle-instantclient
      % apropos oracle-instantclient
      % which oracle-instantclient
      % locate oracle-instantclient

     Where to find more information:

    Darwin Ports



    image test