Pqa version 1.6 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 1.6

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


      The pqa Portfile 38957 2008-08-04 06:08:57Z wsiegrist apple.com $

      PortSystem 1.0

      Name: pqa
      Version: 1.6
      Category: databases
      Platform: darwin
      Maintainers: nomaintainer
      Description: pqa is a PostgreSQL SQL analysis tool
      Long Description: PostgreSQL Query Analyzer produces HTML reports on the most frequent queries, slowest queries, queries by type select/insert/update/delete), and more.

      Homepage: http://pqa.projects.postgresql.org/
      Master Sites: http://pgfoundry.org/frs/download.php/523/
      Checksums: md5 3d311830270d6a476342837fceeab6ed
      use_zip yes

      depends_lib port:ruby

      configure {
      reinplace "s|/usr/local/bin/ruby|/usr/bin/env ruby|g" ${worksrcpath}/pqa.rb ${worksrcpath}/test_pqa.rb
      }

      build {}

      test.run yes
      test.cmd ruby
      test.target test_pqa.rb

      destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
      xinstall -m 755 ${worksrcpath}/pqa.rb ${destroot}${prefix}/bin/pqa
      xinstall -m 644 -W ${worksrcpath} CHANGELOG LICENSE README ${destroot}${prefix}/share/doc/${name}
      xinstall -m 644 -W ${worksrcpath} pglog_sample.log syslog_sample.log ${destroot}${prefix}/share/doc/${name}/examples
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.