Portal Home > Knowledgebase > Articles Database > mytop installation on Centos VPS


mytop installation on Centos VPS




Posted by pcigre, 07-15-2008, 07:35 AM
I just can't make Mytop work on my Centos VPS. Looks like I made some perl problem. Is there any good working installation tutorial?

Posted by ub3r, 07-15-2008, 07:44 AM
tell us what the error is.

Posted by justify, 07-15-2008, 08:31 AM
Also include your control panel and the error message you get.

Posted by ub3r, 07-15-2008, 08:33 AM
your control panel doesn't matter in this case.

Posted by SysAdminMan, 07-15-2008, 10:32 AM
Probably the easiest ( and laziest :-) ) way - rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/...l5.rf.i386.rpm yum install mytop That assumes CentOS 5 See here for other releases - http://dag.wieers.com/rpm/FAQ.php#B2 Edit: hmmm.... can't figure out how to get the forum to leave my link alone! Maybe it's in the docs somewhere ... ;-)

Posted by justify, 07-15-2008, 02:40 PM
ub3r; if it was DirectAdmin or cPanel, I'd recommend him to use ELS to install mytop in easiest way. This is why I asked about cp. Regards.

Posted by whmcsguru, 07-15-2008, 06:41 PM
ELS is a hack that doesn't teach anyone anything except to download a shiny script and run it. pcigre: If you were a bit more specific with the errors, then you might get a bit more help. You're right, you're probably just missing a few perl modules, and those are easily fixed. You can do this as root. Load up the cpan module install the modules necessary get outta CPan If you've got cpanel, you can take the cheater's way to doing this: mytop itself doesn't need "installing", it's a simple perl script. It doesn't have any fancy anything that you MUST use to run it, just download the tar, copy the mytop binary to /bin/ , /usr/bin/ , /sbin/, whatever your binary prefence is (you can skip that step if you want) and just call mytop.

Posted by simonapnic, 07-15-2008, 08:00 PM
CentOS is an Enterprise operating system with tight policies when it comes to installing software on your own if you still need support. You can read more about it on their wiki page. The recommended way of installing anything is via yum install

Posted by whmcsguru, 07-15-2008, 08:13 PM
Tough policies, riiiiiight. Do you even KNOW what CentOS is? It's a FREE OS. Support? You're not going to get it from them directly. Yum is great for installing SYSTEM packages, but for a single file it is unnecessary and bloat. All you need to do is follow the instructions provided in my previous post and you've got it installed. YUM, like ELS is a hack. It doesn't TEACH you anything at all, such as how to truly resolve a problem, it merely does things for you, and fosters a dependency on some ridiculous 3rd party garbage that isn't always going to be there. Not to mention, of course, the faact that the dependencies won't ALWAYS be found using YUM to begin with. Don't use YUM for a single file, use yum for major packages. mytop is nothing but a one file binary (it's not even a binary itself).

Posted by ub3r, 07-15-2008, 09:29 PM
the error he's probably getting is about th emytop script being configured to connect to the test database when it doesn't exist. You have to edit the file to connect to the "mysql" database.

Posted by anoopadmin, 07-16-2008, 03:12 AM
In cPanel try this Installing TermReadKey # wget http://search.cpan.org/CPAN/authors/...ey-2.30.tar.gz # tar -zxf TermReadKey-2.30.tar.gz # cd TermRead* # perl Makefile.PL # make test # make # make install Installing DBI # wget http://search.cpan.org/CPAN/authors/...BI-1.48.tar.gz # tar -zxf DBI-1.48.tar.gz # cd DBI* # perl Makefile.PL # make test # make # make install Installing mytop # wget http://jeremy.zawodny.com/mysql/mytop/mytop-1.4.tar.gz # tar -zxf mytop-1.4.tar.gz # cd mytop* # perl Makefile.PL # make test # make # make install



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Setting webmail (Views: 688)