Version 1 (modified by anonymous, 15 years ago) (diff) |
---|
CQoS C++ Database Library Installation
Requirements:
- The database library is currently using PostgreSQL database server.
- It uses PerfDMF from TAU group to configure database and load performance data.
- Download PostgreSQL from http://www.postgresql.org/, install and run a client at your local machine.
- Prebuilt versions are also available on most platforms
- Download PerfDMF, a part of TAU release, from http://www.cs.uoregon.edu/research/tau/home.php
Build code:
- Run 'perfdmf_configure' to configure 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'
- 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