首页 > 代码库 > 安装TPCC-MySQL报错
安装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
安装TPCC-MySQL报错
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。