****************** Installation of Parser Operator (Linux install)********************** tested on postgres 8.4.4 (32 Bit) REQUIREMENTS: - postgreSQL 8.4.4 installed - postgreSQL programs (initdb, psql etc.) in PATH (check with env) - postgres_src_path: path to source code that includes config, contrib, doc, src etcetera - Lexem Importer installed, hence DB qvestorDB also created in ~ WITH INSTALL SCRIPT: 0. call install_src.sh: mkdir ~/qPsi unzip parseOp_src.zip -d ~/qPsi cd ~/qPsi chmod a+x install_src.sh ./install_src.sh postgres_src_path 1. start postgres server: pg_ctl -D ~/qvestorDB start 2. execute example query: psql -d qvestor -h localhost -f ~/qPsi/aggParse_example.sql 3. stop postgreSQL server: pg_ctl -D ~/qvestorDB stop MANUAL INSTALL WITHOUT INSTALL SCRIPT: 0. extract zip file into a folder: mkdir postgres_src_path/contrib/aggparser unzip parseOp_src.zip -d postgres_src_path/contrib/aggparser 1. change Makefile in postgres_src_path/contrib: sed 's/WANTED_DIRS = \\/WANTED_DIRS = \\\n\t\t aggparser\\/' postgres_src_path/contrib/Makefile > postgres_src_path/contrib/Makefile_new rm postgres_src_path/contrib/Makefile cp postgres_src_path/contrib/Makefile_new postgres_src_path/contrib/Makefile 2. call make: cd postgres_src_path/contrib/aggparser make 4. copy shared object to database folder: cp aggparser.so ~/qvestorDB 5. start postgreSQL server: pg_ctl -D ~/qvestorDB start 6. register function: psql -d qvestor -h localhost -f postgres_src_path/contrib/parseOp.sql 7. execute example query: psql -d qvestor -h localhost -f postgres_src_path/contrib/aggParse_example.sql 8. stop postgreSQL server: pg_ctl -D ~/qvestorDB stop