日期:2014-05-16  浏览次数:20811 次

【求助贴】数据库基准性能测试OSDL以及其工具的BDT系列的使用
各位前辈大家好:
                  小弟最近在做数据库基准性能测试的探索,标准是TPC系列。使用的工具是OSDL系列的BDT-1、BDT-2、BDT-3、BDT-4、BDT-5。由于本人水平有限,过程中遇到了很多问题,在这里向大家请教。
                 以DBT-5为实例,以下是从他的ReadMe当中摘抄的部分安装步骤,小弟在这里卡壳了:
1. Configure:

cmake CMakeLists.txt -DDBMS=pgsql

2. Build EGen:

cd egen/prj
make -f Makefile.pgsql

2. Build and install the C stored functions:

cd storedprocs/pgsql/c
make
make install

3. Make the rest of the kit: (在这一步发生了问题,都是一些变量未声明的错误)

# At the top level of the tree
make
make install


第三个步骤到底是什么意思?是在根目录下运行make吗?然而运行的是时候发生 了以下错误
[  1%] Building CXX object CMakeFiles/bin/BrokerageHouseMain.dir/src/transactions/pgsql/DBConnection.o
在包含自 /home/dbt5/dbt5-0.1.0/src/transactions/pgsql/DBConnection.cpp:15 的文件中:
src/include/DBConnection.h:15:21: 错误:pqxx/pqxx:没有那个文件或目录
src/include/DBConnection.h:16: 错误:‘pqxx’ 不是一个命名空间
src/include/DBConnection.h:16: 错误:expected namespace-name before ‘;’ token
src/include/DBConnection.h:28: 错误:ISO C++ 不允许声明无类型的 ‘connection’
src/include/DBConnection.h:28: 错误:expected ‘;’ before ‘*’ token
src/include/DBConnection.h:29: 错误:ISO C++ 不允许声明无类型的 ‘nontransaction’
src/include/DBConnection.h:29: 错误:expected ‘;’ before ‘*’ token
/home/dbt5/dbt5-0.1.0/src/transactions/pgsql/DBConnection.cpp: In constructor ‘CDBConnection::CDBConnection(const char*, const char*, const char*)’:
/home/dbt5/dbt5-0.1.0/src/transactions/pgsql/DBConnection.cpp:113: 错误:‘m_Conn’ 在此作用域中尚未声明
/home/dbt5/dbt5-0.1.0/src/transactions/pgsql/DBConnection.cpp:113: 错误:expected type-specifier before ‘connection’
/home/dbt5/dbt5-0.1.0/src/transactions/pgsql/DBConnection.cpp:113: 错误:expected `;' before ‘connection’
/home/dbt5/dbt5-0.1.0/src/transactions/pgsql/DBConnection.cpp:114: 错误:‘m_Txn’ 在此作用域中尚未声明

希望用过此类工具的前辈们能够帮帮我,感激不尽,联系方式lujun_wx@nfschina.com  谢谢!!

------解决方案--------------------
3. Make the rest of the kit: (在这一步发生了问题,都是一些变量未声明的错误)

# At the top level of the tree
make
make install

这里要求你在顶层目录进行操作,也就是/home/dbt5/dbt5-0.1.0/这里
并不是在根目录下

src/include/DBConnection.h:15:21: 错误:pqxx/pqxx:没有那个文件或目录
从这句话分析,好像你的源码不全啊

这个东西我没用过,意见仅供参考