第一步:下载Sysbench

http://dev.mysql.com/downloads/benchmarks.html

第二步:解压sysbench

第三步:执行安装步骤
  1. ./autogen.sh
  2. ./configure --with-mysql --with-mysql-includes=/usr/include/mysql --with-mysql-libs=/var/lib/mysql
  此步最后报错如下:
  configure: error: cannot guess build type; you must specify one

  查看了sysbench 的README 和INSTALL, 在INSTALL中有如下提示:
  Specifying the System Type
  ==========================

  There may be some features `configure' cannot figure out
  automatically, but needs to determine by the type of machine the package
  will run on. Usually, assuming the package is built to be run on the
  _same_ architectures, `configure' can figure that out, but if it prints
  a message saying it cannot guess the machine type, give it the
  `--build=TYPE' option. TYPE can either be a short name for the system
  type, such as `sun4', or a canonical name which has the form:

  CPU-COMPANY-SYSTEM
  
  where SYSTEM can have one of these forms:

  OS KERNEL-OS

  See the file `config.sub' for the possible values of each field. If
  `config.sub' isn't included in this package, then this package doesn't
  need to know the machine type.

  3. ./configure --build=ppc64le --with-mysql --with-mysql-includes=/usr/include/mysql --with-mysql-libs=/var/lib/mysql
  能够成功执行

  4. 继续执行make
  出现如下错误:
  /usr/bin/ld: cannot find -lmysqlclient_r

  collect2: error: ld returned 1 exit status

尝试了很多方法,百度了很多文章,终于没有搞定,决定放弃!

解决方案 -- GOOGLE 放弃源码安装,寻找ppc64leCPU结构的RPM包

https://www.rpmfind.net/linux/RPM/epel/7/ppc64le/s/sysbench-0.4.12-12.el7.ppc64le.html

[root@jtcrtvspa02 appuser]# yum install sysbench-0.4.-.el7.ppc64le.rpm
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Examining sysbench-0.4.-.el7.ppc64le.rpm: sysbench-0.4.-.el7.ppc64le
Marking sysbench-0.4.-.el7.ppc64le.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package sysbench.ppc64le :0.4.-.el7 will be installed
--> Processing Dependency: libpq.so.()(64bit) for package: sysbench-0.4.-.el7.ppc64le
--> Running transaction check
---> Package postgresql-libs.ppc64le :9.2.-.el7_1 will be installed
--> Finished Dependency Resolution Dependencies Resolved ===============================================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================================
Installing:
sysbench ppc64le 0.4.-.el7 /sysbench-0.4.-.el7.ppc64le k
Installing for dependencies:
postgresql-libs ppc64le 9.2.-.el7_1 rhel7. k Transaction Summary
===============================================================================================================================================================================================
Install Package (+ Dependent package) Total size: k
Total download size: k
Installed size: 1.1 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : postgresql-libs-9.2.-.el7_1.ppc64le /
Installing : sysbench-0.4.-.el7.ppc64le /
Verifying : sysbench-0.4.-.el7.ppc64le /
Verifying : postgresql-libs-9.2.-.el7_1.ppc64le / Installed:
sysbench.ppc64le :0.4.-.el7 Dependency Installed:
postgresql-libs.ppc64le :9.2.-.el7_1 Complete!

最新文章

  1. php内核分析(四)-do_cli
  2. HDU 5945 / BestCoder Round #89 1002 Fxx and game 单调队列优化DP
  3. bzoj3631树链剖分
  4. GPUImage实现摄像头暂停
  5. JS中NULL和Undefined的区别
  6. Inspector a ProgressBar(定制属性面板)
  7. Java6 String.substring()方法的内存泄露
  8. http方法
  9. C++类的const成员函数、默认的构造函数、复制形参调用函数(转)
  10. hdu_5968_异或密码(预处理+二分)
  11. 图片流量节省大杀器:基于腾讯云CDN的sharpP自适应图片技术实践
  12. js怎么防止变量冲突
  13. 13 获取外部数据库 以及数据库游标适配器(SimpleCursorAdapter)
  14. SignalR网页实时推送
  15. redis报错:java.net.SocketException: Broken pipe (Write failed); nested exception is redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Broken pipe (Write failed)
  16. Android为TV端助力 不需要Socket的跨进程推送消息AIDL!
  17. webpack中resolve用法
  18. Linux下Keepalived安装与配置
  19. 【论文笔记】Training Very Deep Networks - Highway Networks
  20. Linux下LoadGenerator的搭建

热门文章

  1. The 11 advantages of Java -Why you choose this language
  2. github中redme添加图片
  3. 从AutoCAD和.NET开始
  4. 关于 ant 不同渠道自动打包的笔记
  5. html基础二
  6. thinkphp在模型中自动完成session赋值
  7. Android ndk另一种注册方式
  8. 【Django】Django web项目部署(Nginx+uwsgi)
  9. BZOJ 1801中国象棋 DP
  10. LeetCode-Search in Rotated Sorted Array II