愿你出走半生,归来仍是少年

Kratos
专注于用户阅读体验的响应式博客主题
  1. 首页
  2. 未分类
  3. 正文

爱你不容易-sysbench

2018年1月19日 13796点热度 0人点赞 0条评论

用源码方式安装。

下载:在github搜索sysbench,https://github.com/,点击“Clone or download”,选择“Download ZIP”。

根据github网页文档准备环境:【测试环境-sxyd-10.231.19.172】
Building and Installing From Source --- Build Requirements --- RHEL/CentOS
yum -y install make automake libtool pkgconfig libaio-devel
# For MySQL support, replace with mysql-devel on RHEL/CentOS 5
yum -y install mariadb-devel
# For PostgreSQL support
yum -y install postgresql-devel

Build and Install:
./autogen.sh
./configure --prefix=/usr/local/sysbench/ --with-oracle="/home/oracle/instantclient/instantclient_11_2" --includedir=/home/oracle/instantclient/instantclient_11_2/sdk/include
make

■0.5卡在这里
../libtool: line 4978: cd: yes/lib: No such file or directory

■sysbench-master和1.0均卡在
编译时不兼容的变量类型及转换等,可能需要最新版本的系统和安装包吧,或者干脆使用binarypackage安装使用吧

■找不到相关的库,ldocnfig加上库目录
/usr/bin/ld: warning: libnnz11.so, needed by /home/oracle/instantclient/instantclient_11_2/libclntsh.so, not found (try using -rpath or -rpath-link)
echo "/home/oracle/instantclient/instantclient_11_2/" > /etc/ld.so.conf.d/oracle.conf
ldconfig

■drv_oracle.c:30:17: error: oci.h: No such file or directory
configure时加上--includedir即可

结论:sysbench想说爱你不容易!
但是默认的with-mysql支持mysql数据库,没有问题。
./configure --prefix=/usr/local/sysbench/
./configure --prefix=/usr/local/sysbench-master/
由于mysql安装在默认的系统目录,无需指定inc和lib路径。--with-mysql-includes= --with-mysql-libs=

最后使用如下步骤可以编译成功0.5版本,看来1.0版本、master最新版都不成。

Build and Install:【0.5版本的build操作命令格式如下】

./autogen.sh
./configure --prefix=/usr/local/sysbench/ --with-oracle --libdir=/u01/app/oracle/product/11.2.0/db_1/lib
make ORA_LIBS=/u01/app/oracle/product/11.2.0/db_1/lib/libclntsh.so ORA_CFLAGS="-I/u01/app/oracle/product/11.2.0/db_1/rdbms/public"
make install

 

标签: sysbench
最后更新:2018年1月19日

liking

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

归档

  • 2026 年 6 月
  • 2026 年 3 月
  • 2026 年 2 月
  • 2025 年 12 月
  • 2025 年 11 月
  • 2025 年 4 月
  • 2025 年 2 月
  • 2025 年 1 月
  • 2024 年 12 月
  • 2024 年 10 月
  • 2024 年 7 月
  • 2024 年 5 月
  • 2024 年 4 月
  • 2023 年 11 月
  • 2023 年 10 月
  • 2023 年 8 月
  • 2023 年 7 月
  • 2023 年 5 月
  • 2023 年 3 月
  • 2023 年 2 月
  • 2022 年 12 月
  • 2022 年 11 月
  • 2022 年 10 月
  • 2022 年 9 月
  • 2022 年 8 月
  • 2022 年 6 月
  • 2022 年 5 月
  • 2022 年 3 月
  • 2022 年 2 月
  • 2022 年 1 月
  • 2021 年 12 月
  • 2021 年 11 月
  • 2021 年 10 月
  • 2021 年 8 月
  • 2021 年 7 月
  • 2021 年 6 月
  • 2021 年 5 月
  • 2021 年 4 月
  • 2021 年 3 月
  • 2021 年 2 月
  • 2021 年 1 月
  • 2020 年 12 月
  • 2020 年 11 月
  • 2020 年 10 月
  • 2020 年 9 月
  • 2020 年 8 月
  • 2020 年 7 月
  • 2020 年 6 月
  • 2020 年 5 月
  • 2020 年 3 月
  • 2020 年 2 月
  • 2019 年 12 月
  • 2019 年 11 月
  • 2019 年 10 月
  • 2019 年 9 月
  • 2019 年 8 月
  • 2019 年 7 月
  • 2019 年 6 月
  • 2019 年 5 月
  • 2019 年 4 月
  • 2019 年 2 月
  • 2018 年 12 月
  • 2018 年 11 月
  • 2018 年 8 月
  • 2018 年 7 月
  • 2018 年 6 月
  • 2018 年 5 月
  • 2018 年 4 月
  • 2018 年 3 月
  • 2018 年 2 月
  • 2018 年 1 月
  • 2017 年 12 月
  • 2017 年 11 月
  • 2017 年 8 月
  • 2017 年 6 月
  • 2017 年 5 月
  • 2017 年 3 月
  • 2016 年 9 月
  • 2016 年 8 月
  • 2016 年 7 月
  • 2016 年 6 月
  • 2016 年 5 月
  • 2015 年 10 月
  • 2014 年 10 月
  • 2014 年 8 月
  • 2014 年 3 月
  • 2013 年 12 月
  • 2013 年 8 月
  • 2013 年 7 月
  • 2013 年 6 月
  • 2013 年 4 月
  • 2012 年 11 月
  • 2012 年 7 月
  • 2012 年 6 月
  • 2012 年 5 月
  • 2012 年 2 月
  • 2011 年 10 月
  • 2011 年 8 月
  • 2011 年 3 月
  • 2010 年 11 月
  • 2010 年 10 月
  • 2010 年 9 月
  • 2010 年 8 月
  • 2010 年 7 月
  • 2010 年 5 月
  • 2010 年 4 月
  • 2010 年 1 月
  • 2009 年 11 月
  • 2009 年 8 月
  • 2009 年 5 月
  • 2009 年 3 月
  • 2009 年 2 月
  • 2008 年 11 月
  • 2008 年 10 月
  • 2008 年 8 月
  • 2008 年 4 月
  • 2007 年 4 月

分类

  • BigData
  • kubernetes
  • linux
  • MongoDB
  • MySQL
  • Oracle
  • PostgreSQL
  • 备份恢复
  • 安装配置
  • 性能优化
  • 技术杂谈
  • 未分类
  • 梦回红楼
  • 测试
  • 生活点滴
  • 网站建设
  • 自制工具
  • 轻松一刻
  • 运维知识
  • 问题处理

COPYRIGHT © 2026 愿你出走半生,归来仍是少年. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang