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