The other problematic part except the learning curve is the installation. It took me a while last time I had to install it, and this time re-installing it I've decided to write down the steps needed.
Most of the trouble I went through the first time around were with CPAN, and finding out that those Perl modules were available in RPM form saved me lots of time. Avoid CPAN if you can for this purpose.
Also, these steps should work on RedHat Linux as well, of course, but I didn't test it.
- Download the compatibility version of the shared MySQL libraries. The compatibility package will save you a lot of trouble due to dependencies. The rest won't go smoothly if you don't get this one.
It should be named something like:MySQL-shared-compat-5.1.xx.distribution.platform.rpm
- Install it:
rpm -Uvh MySQL-shared-compat-5.1.52.rhel5.x86_64.rpm
- Install these packages:
yum install perl-DBI perl-DBD-mysql perl-TermReadKey
- Download latest Innotop, and extract it:
wget http://innotop.googlecode.com/files/innotop-1.8.0.tar.gz tar zfx innotop-1.8.0.tar.gz
- We're done with the prerequisites. Go into the directory and install innotop (from now on it's the same as in the INSTALL file):
perl Makefile.pl make install
Hope this saves someone some time.
Update:
On Debian, this is also simple due to this little trick (if you have the right sources defined):
sudo aptitude install libdbd-mysql-perl
Do you have the EPEL repo enabled?
ReplyDeleteperl-TermReadKey is not available in the CentOS-Base repo.
Cheers
perl-TermReadKey rpm is not part of Centos5 base.
ReplyDeleteThanks, you're both right!
ReplyDeleteApparently it's part of rpmforge repo for RHEL5 which was added to the server I was working on.
So the solution is either to download that package separately or add this repo to yum.
Found it here:
ReplyDeletehttp://packages.sw.be/perl-TermReadKey/