安装TPCC-MySQL报错
安装TPCC-MySQL做压力测试,由于TPCC-MySQL是bzr工具进行版本控制的,所以要先安装bzr
[root@mha_backup /root] #rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm Retrieving http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm warning: /var/tmp/rpm-tmp.K7uQLw: Header V3 DSA/SHA1 Signature, key ID 217521f6: NOKEY Preparing... ########################################### [100%]
然后安装bzr
[root@mha_backup /root] #yum install bzr -y Loaded plugins: fastestmirror, refresh-packagekit Loading mirror speeds from cached hostfile * epel: ftp.sjtu.edu.cn Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package bzr.x86_64 0:2.1.4-2.el5 will be installed --> Processing Dependency: python(abi) = 2.4 for package: bzr-2.1.4-2.el5.x86_64 --> Processing Dependency: python-paramiko for package: bzr-2.1.4-2.el5.x86_64 --> Processing Dependency: python-elementtree for package: bzr-2.1.4-2.el5.x86_64 --> Running transaction check ---> Package bzr.x86_64 0:2.1.4-2.el5 will be installed --> Processing Dependency: python(abi) = 2.4 for package: bzr-2.1.4-2.el5.x86_64 --> Processing Dependency: python-elementtree for package: bzr-2.1.4-2.el5.x86_64 ---> Package python-paramiko.noarch 0:1.7.6-1.el5 will be installed --> Processing Dependency: python(abi) = 2.4 for package: python-paramiko-1.7.6-1.el5.noarch --> Processing Dependency: python-crypto >= 1.9 for package: python-paramiko-1.7.6-1.el5.noarch --> Running transaction check ---> Package bzr.x86_64 0:2.1.4-2.el5 will be installed --> Processing Dependency: python(abi) = 2.4 for package: bzr-2.1.4-2.el5.x86_64 --> Processing Dependency: python-elementtree for package: bzr-2.1.4-2.el5.x86_64 ---> Package python-crypto.x86_64 0:2.0.1-22.el6 will be installed ---> Package python-paramiko.noarch 0:1.7.6-1.el5 will be installed --> Processing Dependency: python(abi) = 2.4 for package: python-paramiko-1.7.6-1.el5.noarch --> Finished Dependency Resolution Error: Package: bzr-2.1.4-2.el5.x86_64 (epel) Requires: python(abi) = 2.4 Installed: python-2.6.6-36.el6.x86_64 (@anaconda-CentOS-201303020151.x86_64/6.4) python(abi) = 2.6 Available: python26-2.6.8-2.el5.x86_64 (epel) python(abi) = 2.6 Error: Package: bzr-2.1.4-2.el5.x86_64 (epel) Requires: python-elementtree Error: Package: python-paramiko-1.7.6-1.el5.noarch (epel) Requires: python(abi) = 2.4 Installed: python-2.6.6-36.el6.x86_64 (@anaconda-CentOS-201303020151.x86_64/6.4) python(abi) = 2.6 Available: python26-2.6.8-2.el5.x86_64 (epel) python(abi) = 2.6 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
发现报错信息,版本不兼容,谷歌求助
http://serverfault.com/questions/322911/centos-6-yum-update-packages-skipped-because-of-dependency-problems
原来是epel安装版本不对。查看系统真实版本:
#cat /etc/redhat-release CentOS release 4.0 (Final) 这个文件容易被修改不能作准 [root@mha_backup /opt/tpcc-mysql] #cat /etc/issue CentOS release 6.4 (Final) Kernel \r on an \m
删除旧的epel版本。使用新版
#rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm warning: /var/tmp/rpm-tmp.QakSYL: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY Preparing... ########################################### [100%] 1:epel-release ########################################### [100%] [root@mha_backup /root] #yum clean all Loaded plugins: fastestmirror, refresh-packagekit Cleaning repos: aliyun epel local-232 Cleaning up Everything Cleaning up list of fastest mirrors [root@mha_backup /root] #yum -y install bzr Installed: bzr.x86_64 0:2.1.1-2.el6 Dependency Installed: python-crypto.x86_64 0:2.0.1-22.el6 python-paramiko.noarch 0:1.7.5-2.1.el6 Complete!
此时可以正确安装了,没有报错。
安装TPCC
[root@mha_backup /opt] #bzr branch lp:~percona-dev/perconatools/tpcc-mysql You have not informed bzr of your Launchpad ID, and you must do this to write to Launchpad or access private data. See "bzr help launchpad-login". Branched 48 revision(s). cd /opt/tpcc-mysql/src export LD_LIBRARY_PATH=/usr/local/mysql/lib export C_INCLUDE_PATH=/usr/local/mysql/include make -j 2
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。