c 引用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
總結
以上是生活随笔為你收集整理的c 引用mysql报错_安装TPCC-MySQL报错的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: hibernate createsqlq
- 下一篇: 在手机浏览器上打开外接摄像头