Chinaunix首页 | 论坛 | 博客
  • 博客访问: 350268
  • 博文数量: 166
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1640
  • 用 户 组: 普通用户
  • 注册时间: 2015-05-05 11:44
个人简介

文章不在长,坚持不懈记录下努力前行的脚步

文章分类

全部博文(166)

文章存档

2017年(19)

2016年(59)

2015年(88)

我的朋友

分类: Mysql/postgreSQL

2017-02-20 15:16:18

一、下载软件
最近版本直接wget
wget percona.com/get/percona-toolkit.tar.gz
可选版本 进入软件下载目录,选择待安装版本下载

复制链接地址下载
wget 2.2.16/tarball/percona-toolkit-2.2.16.tar.gz

二、解压软件阅读INSTALL文件 -- 安装步骤
Extract the tarball and cd to the resulting directory:


   tar zxvf percona-toolkit-.tar.gz
   cd percona-toolkit-


Generate the Makefile, which will check Perl module dependencies and
so forth:


   perl Makefile.PL


Build the tools' man pages and prep for test and install:


   make


Test that the tools can run:


   make test


All tests should pass.  If not, then your system may be missing a Perl module
required by a tool.  The tests are not comprehensive; they only test that the
tools can be executed by Perl and Bash.


Finally, install all tools and their man pages:


   make install
三、安装过程中出现的问题及解决办法
==================================================
问题
perl Makefile.PL 
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 1.
BEGIN failed--compilation aborted at Makefile.PL line 1.

解决办法
yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker

问题
Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/bin/pt-heartbeat line 3110.
BEGIN failed--compilation aborted at /usr/local/bin/pt-heartbeat line 3110.

解决办法
yum install perl-Time-HiRes -y

问题
Character set 'utf8mb4' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file
Character set 'utf8mb4' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file
DBI connect('test;mysql_socket=/tmp/mysql.sock;mysql_read_default_group=client','root',...) failed: Can't initialize character set utf8mb4 (path: /usr/share/mysql/charsets/) at /usr/local/bin/pt-heartbeat line 2137

解决办法
vi /usr/share/mysql/charsets/Index.xml
# append

  Unicode
  UTF-8 Unicode
  utf-8
 
   primary
   compiled
 

 
    binary
    compiled
 



# append
==================================================

附:出现下面这个不是问题,继续安装
make test
No tests defined for percona-toolkit extension.

阅读(1116) | 评论(0) | 转发(0) |
0

上一篇:双主重做

下一篇:无法解析binlog event

给主人留下些什么吧!~~