RHEL7.2+
1.依赖包安装

	* autoconf
	* automake
	* cdbs
	* debhelper (>= 9)
	* docbook-xml
	* docbook-xsl
	* libmysqlclient15-dev
	* libtool
	* xsltproc

2.解压
tar -xzvf sysbench-0.5.tar.gz
chmod +x autogen.sh
3.执行autogen.sh
 ./autogen.sh
报错:
[root@rac2 sysbench-0.5]# ./autogen.sh
./autogen.sh: running `aclocal -I m4'
./autogen.sh: running `libtoolize --copy --force'
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: copying file `config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
./autogen.sh: running `autoheader'
./autogen.sh: running `automake -c --foreign --add-missing'
configure.ac:23: installing 'config/compile'
configure.ac:11: installing 'config/config.guess'
configure.ac:11: installing 'config/config.sub'
configure.ac:16: installing 'config/install-sh'
configure.ac:16: installing 'config/missing'
sysbench/Makefile.am: installing 'config/depcomp'
automake: warnings are treated as errors
/usr/share/automake-1.13/am/library.am: warning: 'libsbdrizzle.a': linking libraries using a non-POSIX
/usr/share/automake-1.13/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/drivers/drizzle/Makefile.am:17:   while processing library 'libsbdrizzle.a'
/usr/share/automake-1.13/am/library.am: warning: 'libsbmysql.a': linking libraries using a non-POSIX
/usr/share/automake-1.13/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/drivers/mysql/Makefile.am:17:   while processing library 'libsbmysql.a'
/usr/share/automake-1.13/am/library.am: warning: 'libsboracle.a': linking libraries using a non-POSIX
/usr/share/automake-1.13/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/drivers/oracle/Makefile.am:17:   while processing library 'libsboracle.a'
/usr/share/automake-1.13/am/library.am: warning: 'libsbpgsql.a': linking libraries using a non-POSIX
/usr/share/automake-1.13/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/drivers/pgsql/Makefile.am:17:   while processing library 'libsbpgsql.a'
/usr/share/automake-1.13/am/library.am: warning: 'libsbscript.a': linking libraries using a non-POSIX
/usr/share/automake-1.13/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/scripting/Makefile.am:23:   while processing library 'libsbscript.a'
/usr/share/automake-1.13/am/library.am: warning: 'liblua.a': linking libraries using a non-POSIX
/usr/share/automake-1.13/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/scripting/lua/src/Makefile.am:17:   while processing library 'liblua.a'
/usr/share/automake-1.13/am/library.am: warning: 'libsbcpu.a': linking libraries using a non-POSIX
/usr/share/automake-1.13/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/tests/cpu/Makefile.am:17:   while processing library 'libsbcpu.a'
/usr/share/automake-1.13/am/library.am: warning: 'libsbfileio.a': linking libraries using a non-POSIX
/usr/share/automake-1.13/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/tests/fileio/Makefile.am:17:   while processing library 'libsbfileio.a'
/usr/share/automake-1.13/am/library.am: warning: 'libsbmemory.a': linking libraries using a non-POSIX
/usr/share/automake-1.13/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/tests/memory/Makefile.am:17:   while processing library 'libsbmemory.a'
/usr/share/automake-1.13/am/library.am: warning: 'libsbmutex.a': linking libraries using a non-POSIX
/usr/share/automake-1.13/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/tests/mutex/Makefile.am:17:   while processing library 'libsbmutex.a'
/usr/share/automake-1.13/am/library.am: warning: 'libsbthreads.a': linking libraries using a non-POSIX
/usr/share/automake-1.13/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/tests/threads/Makefile.am:17:   while processing library 'libsbthreads.a'
Can't execute automake

修改configure.ac
[root@rac2 sysbench-0.5]# vi configure.ac
添加AM_PROG_AR

AC_PROG_CC

AM_PROG_AR

AC_PROG_CPP
4.configure
报错:
configure: error: *** pthread_once() is not available on this platform ***
注释掉使用到的地方:
    285 #AC_CHECK_FUNC(pthread_once, ,
    286 #              AC_MSG_ERROR([*** pthread_once() is not available on this platform ***])
    287 #)
执行:
./configure --with-oracle --without-mysql --without-pgsql
5.make
make ORA_LIBS=/u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so
6.make install
7.设置参数
[root@rac2 share]# su - oracle
Last login: Thu Mar 16 09:55:18 CST 2017 on pts/2
[oracle@rac2 ~]$ cat .bash_profile

 export CC=cc
export CXX=c++
export CFLAGS="-m64 -I /u01/app/oracle/product/11.2.0/dbhome_1/rdbms/public"
export CXXFLAGS="$CFLAGS"
export LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/dbhome_1/lib
7.测试连接:
export LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/dbhome_1/lib/
./sysbench  --oracle-db=orcl --oracle-user=system --oracle-password=oracle  --db-driver=Oracle  --test=/usr/sysbench-0.5/sysbench/tests/db/select.lua run

sysbench安装for oracle的更多相关文章

  1. sysbench 安装、使用和测试

    摘要:      sysbench是一个开源的.模块化的.跨平台的多线程性能测试工具,可以用来进行CPU.内存.磁盘I/O.线程.数据库的性能测试.目前支持的数据库有MySQL.Oracle和Post ...

  2. Mysql多线程性能测试工具sysbench 安装、使用和测试

    From:http://www.cnblogs.com/zhoujinyi/archive/2013/04/19/3029134.html 摘要:      sysbench是一个开源的.模块化的.跨 ...

  3. sysbench安装和使用

    sysbench是一款测试工具 主要包括以下几种方式的测试: 1.cpu性能 2.磁盘io性能 3.调度程式性能 4.内存分配及传输速度 5.POSIX线程性能 6.数据库性能(OLTP基准测试)现在 ...

  4. 三、oracle数据库成功安装步骤 Oracle数据源配置

      安装完Oracle驱动后,如需连接远程Oracle数据库,还需进行数据源配置,类似Windows下的ODBC数据源配置. 运行"开始菜单\Oracle - OraDb11g_home1\ ...

  5. 如何通过cmd检查自己电脑是否安装了oracle

    随便一个oracle命令,例如imp,如果提示输入用户名,就表示安装了oracle 1.直接运行sqlplus,然后要求输入用户名和密码.如果你是管理员的身份,应该在用户名后加as sysdba(以下 ...

  6. sysbench 安装

    sysbench源代码可以在https://launchpad.net/sysbench找到.也可以从本文件附件中下载. 先安装好mysql,记录下安装目录.默认为 /usr/local/mysql ...

  7. 安装完oracle重新启动后报ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务(重启前正常)

    安装完oracle重新启动后报ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务(重启前正常) 刚安装完后用plSql登录正常. 在dos命令行下 输入  sqlplus 用户 ...

  8. Redhat Enterprise 5.4下安装配置Oracle 11g R2详细过程

    1.Linux环境配置准备 环境:Linux:Redhat Enterprise 5.4,DB:Oracle 11g R2 X64,Oracle安装到/home/oralce_11目录下. 配置过程如 ...

  9. AIX安装恢复oracle问题-内存不足

    AIX安装恢复oracle问题-----------------------2013/10/19 oracle 安装后后,进行rman恢复数据库时,启动不了dummy实例,报内存不足   RMAN&g ...

随机推荐

  1. php 获取数组中的key值

    <?php $arr = array( 'book' => 1, 'data' => 'data', 'music' => 'music', 'img' => 'img' ...

  2. Java集合(8):Hashtable

    一.Hashtable介绍 和HashMap一样,Hashtable 也是一个散列表,它存储的内容是键值对(key-value)映射,它在很大程度上和HashMap的实现差不多. Hashtable ...

  3. [笔记] Android NDK 开发笔记

    学习下Android NDK的开发,做些笔记记录下. [笔记] Windows下使用Android Studio 创建缺省工程 [笔记] Windows下使用Android Studio开发NDK的最 ...

  4. kubernetes1.9 手动安装

    一.创建TLS证书和秘钥: 1.安装 CFSSL: wget https://pkg.cfssl.org/R1.2/cfssl_linux-amd64 chmod +x cfssl_linux-amd ...

  5. dobbo 简单框架

  6. Spring框架学习之IOC(二)

    Spring框架学习之IOC(二) 接着上一篇的内容,下面开始IOC基于注解装配相关的内容 在 classpath 中扫描组件 <context:component-scan> 特定组件包 ...

  7. linux命令(6/11)--修改文件的用户组chgrp和文件所有者chown

    在lunix系统里,文件或目录的权限的掌控以拥有者及所诉群组来管理.可以使用chgrp指令取变更文件与目录所属群组,这种方式采用群组名称或群组识别码都可以.Chgrp命令就是change group的 ...

  8. Java集合类初始容量、加载因子、扩容增量

    当底层实现涉及到扩容时,容器或重新分配一段更大的连续内存(如果是离散分配则不需要重新分配,离散分配都是插入新元素时动态分配内存),要将容器原来的数据全部复制到新的内存上,这无疑使效率大大降低. 加载因 ...

  9. ASP.NET MVC 4.0 中使用NPOI 2.2.0 按模板生成Excel报表

    使用 NPOI 你就可以在没有安装 Office 或者相应环境的机器上对 WORD/EXCEL 文档进行读写.NPOI是构建在POI 3.x版本之上的,它可以在没有安装Office的情况下对Word/ ...

  10. 线程的sleep()方法和yield()方法区别

    1.sleep()方法给其他线程运行机会时不考虑线程的优先级,因此会给低优先级的线程以运行的机会 2.yield()方法只会给相同优先级或更高优先级的线程以运行的机会 3.线程执行sleep()方法后 ...