wiki:cqosdbInstallation

Version 13 (modified by norris, 15 years ago) (diff)

--

TracNav(TracNavCQoS)?

CQoS C++ Database Library Installation

Requirements:

  • The database library is currently using a PostgreSQL database server.
    • If it's not already available on your machine, download PostgreSQL from http://www.postgresql.org/ and build and install a client on your local machine. Prebuilt versions are also available for most platforms.
  • Before you can use the database library, you also need PerfDMF from the TAU Performance System for database configuration and performance data gathering.
    • Download TAU, which includes PerfDMF, from http://www.cs.uoregon.edu/research/tau/home.php
    • Run 'perfdmf_configure' to configure the database with PerfDMF. Some notes about the configuration:
      • database name is 'cqos',
      • store the database user password in your configuration file
      • PerfDMF schema file is at 'cqos-database/DBSchemas/metaschema.txt'
  • Finally, run 'psql perfdb your_user_name' to check if the DB is correctly configured.

Build code:

  • To build and install in the cqos-database/installed directory, run
      ./configure --prefix=/path/to/installation/dir --with-postgresql=/path/to/postgresql/installation
      make install
    
  • A small example that shows how to use various database management and query functions is located at directory at cqos-database/tests/test1.cc