mytop
时间:2009-03-11 来源:tangliyun
TermReadKey-2.30.tar.gz ./
tar xzf ../dist/TermReadKey-2.30.tar.gz
cd TermReadKey-2.30
perl Makefile.PL
make && make install
Time-HiRes-1.9715.tar.gz ./
tar xzf ../dist/Time-HiRes-1.9715.tar.gz
cd Time-HiRes-1.9715
perl Makefile.PL
make && make install
ANSIColor-1.12.tar.gz ./
tar xzf ../dist/ANSIColor-1.12.tar.gz
cd ANSIColor-1.12
perl Makefile.PL
make && make install
DBI-1.604.tar.gz ./
/
tar xzf ../dist/DBI-1.604.tar.gz
cd DBI-1.604/
perl Makefile.PL
make && make install
DBD-mysql-4.007.tar.gz ./
tar xzf ../dist/DBD-mysql-4.007.tar.gz
cd DBD-mysql-4.007
perl Makefile.PL --mysql_config=/usr/local/mysql/bin/mysql_config
make && make install
mytop-1.6.tar.gz ./
tar xzf ../dist/mytop-1.6.tar.gz
cd mytop-1.6/
perl Makefile.PL
make
make test
make install
编译的时候会出现这样的错误:
perl: warning: Falling back to the standard locale ("C").
perl支援地方性的語系所以會去檢查..若不被其支援..會用預設的local 也就是 C
解決方式A:
LC_ALL=C;export LC_ALL ; LC_CTYPE=C ; export LC_CTYPE;
這樣就可以透過 perl -v 查看是否有錯誤訊息...
如果运行 mytop 出现类似这样的错误提示
install_driver(mysql) failed: Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
at (eval 12) line 3
则运行下面这两行语句就可以解决
echo '/usr/local/mysql/lib/mysql' > /etc/ld.so.conf.d/libmysqlclient.so.15.conf
ldconfig
查看使用帮助
perldoc mytop
使用
mytop
问题:Access denied for user 'root'@'localhost' (using password: YES)
解决:
vi ~/.mytop
编辑配置文件 ~/.mytop
Here is a sample config file "~/.mytop" which implements the defaults described above.
user=root
pass=
host=localhost
db=test
delay=5
port=3306
socket=/tmp/mysql.sock
batchmode=0
header=1
color=1
idle=1
tar xzf ../dist/TermReadKey-2.30.tar.gz
cd TermReadKey-2.30
perl Makefile.PL
make && make install
Time-HiRes-1.9715.tar.gz ./
tar xzf ../dist/Time-HiRes-1.9715.tar.gz
cd Time-HiRes-1.9715
perl Makefile.PL
make && make install
ANSIColor-1.12.tar.gz ./
tar xzf ../dist/ANSIColor-1.12.tar.gz
cd ANSIColor-1.12
perl Makefile.PL
make && make install
DBI-1.604.tar.gz ./
/
tar xzf ../dist/DBI-1.604.tar.gz
cd DBI-1.604/
perl Makefile.PL
make && make install
DBD-mysql-4.007.tar.gz ./
tar xzf ../dist/DBD-mysql-4.007.tar.gz
cd DBD-mysql-4.007
perl Makefile.PL --mysql_config=/usr/local/mysql/bin/mysql_config
make && make install
mytop-1.6.tar.gz ./
tar xzf ../dist/mytop-1.6.tar.gz
cd mytop-1.6/
perl Makefile.PL
make
make test
make install
编译的时候会出现这样的错误:
perl: warning: Falling back to the standard locale ("C").
perl支援地方性的語系所以會去檢查..若不被其支援..會用預設的local 也就是 C
解決方式A:
LC_ALL=C;export LC_ALL ; LC_CTYPE=C ; export LC_CTYPE;
這樣就可以透過 perl -v 查看是否有錯誤訊息...
如果运行 mytop 出现类似这样的错误提示
install_driver(mysql) failed: Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
at (eval 12) line 3
则运行下面这两行语句就可以解决
echo '/usr/local/mysql/lib/mysql' > /etc/ld.so.conf.d/libmysqlclient.so.15.conf
ldconfig
查看使用帮助
perldoc mytop
使用
mytop
问题:Access denied for user 'root'@'localhost' (using password: YES)
解决:
vi ~/.mytop
编辑配置文件 ~/.mytop
Here is a sample config file "~/.mytop" which implements the defaults described above.
user=root
pass=
host=localhost
db=test
delay=5
port=3306
socket=/tmp/mysql.sock
batchmode=0
header=1
color=1
idle=1
相关阅读 更多 +
排行榜 更多 +