日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

安装TPCC-MySQL报错

發布時間:2025/3/8 数据库 20 豆豆
生活随笔 收集整理的這篇文章主要介紹了 安装TPCC-MySQL报错 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

2019獨角獸企業重金招聘Python工程師標準>>>

安裝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.4Installed:?python-2.6.6-36.el6.x86_64?(@anaconda-CentOS-201303020151.x86_64/6.4)python(abi)?=?2.6Available:?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.4Installed:?python-2.6.6-36.el6.x86_64?(@anaconda-CentOS-201303020151.x86_64/6.4)python(abi)?=?2.6Available:?python26-2.6.8-2.el5.x86_64?(epel)python(abi)?=?2.6You?could?try?using?--skip-broken?to?work?around?the?problemYou?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/includemake?-j?2


轉載于:https://my.oschina.net/u/1440383/blog/317110

總結

以上是生活随笔為你收集整理的安装TPCC-MySQL报错的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。