Php5-postgresql - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    php5-postgresql  most recent diff


    version

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


      The php5-postgresql Portfile 57749 2009-09-16 04:30:02Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup php5extension 1.0

      php5extension.setup postgresql 5.3.0 bundled
      php5extension.use_phpize no
      Category:-append databases
      Platform: darwin
      Maintainers: ryandesign

      Description: a PHP interface to PostgreSQL, including the pgsql and pdo_pgsql extensions

      Long Description: ${description}

      Checksums: md5 846760cd655c98dfd86d6d97c3d964b0 sha1 934700941d216c453376e3bf24347041cf12c6dc rmd160 9a71b74052b0ca515f2ddf95c051b47a73d33f44

      configure.args-append --enable-pdo

      use_parallel_build yes

      Variant: postgresql82 conflicts postgresql83 postgresql84 description {Use PostgreSQL 8.2 libraries} {
      depends_lib-append port:postgresql82
      configure.args-append --with-pgsql=shared,${prefix}/lib/postgresql82/bin --with-pdo-pgsql=shared,${prefix}/lib/postgresql82/bin
      }

      Variant: postgresql83 conflicts postgresql82 postgresql84 description {Use PostgreSQL 8.3 libraries} {
      depends_lib-append port:postgresql83
      configure.args-append --with-pgsql=shared,${prefix}/lib/postgresql83/bin --with-pdo-pgsql=shared,${prefix}/lib/postgresql83/bin
      }

      Variant: postgresql84 conflicts postgresql82 postgresql83 description {Use PostgreSQL 8.4 libraries} {
      depends_lib-append port:postgresql84
      configure.args-append --with-pgsql=shared,${prefix}/lib/postgresql84/bin --with-pdo-pgsql=shared,${prefix}/lib/postgresql84/bin
      }

      if {![variant_isset postgresql82] && ![variant_isset postgresql83]} {
      default_variants +postgresql84
      }

    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/php5-postgresql
      % sudo port install php5-postgresql
      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 php5-postgresql
      ---> Verifying checksum for php5-postgresql
      ---> Extracting php5-postgresql
      ---> Configuring php5-postgresql
      ---> Building php5-postgresql with target all
      ---> Staging php5-postgresql into destroot
      ---> Installing php5-postgresql
    - 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 php5-postgresql with these commands:
      %  man php5-postgresql
      % apropos php5-postgresql
      % which php5-postgresql
      % locate php5-postgresql

     Where to find more information:

    Darwin Ports



    Lightbox this page.