wiki:cqosdbInstallation

Version 5 (modified by anonymous, 15 years ago) (diff)

--

CQoS C++ Database Library Installation

Requirements:

  • The database library is currently using a PostgreSQL database server.
    • Download PostgreSQL from http://www.postgresql.org/, install and run a client at your local machine. Prebuilt versions are also available on 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'

Build code:

  • Then you can run 'psql perfdb your_user_name' to check if the DB is correctly configured.
  • To build and install in the cqos-database/installed directory, run
      ./configure 
      make install
    
  • You can also specify the location of the PostgreSQL library and an alternate installation location, you can use

the --with-postgresql and --prefix configure options, respectively.

  • A small example that shows how to use various database management and query functions is located at directory at database/tests/main.cc