Linux命令之将终端变成「水族馆」

前言

面对枯燥无味的终端,有没有办法让它变的更加有趣呢?快来试一试这个命令!

安装

[root@iZo7e61fz42ik0Z ~]# yum install perl-Curses perl-ExtUtils-MakeMaker
[root@iZo7e61fz42ik0Z ~]# wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz
[root@iZo7e61fz42ik0Z ~]# tar -zxvf Term-Animation-2.4.tar.gz
[root@iZo7e61fz42ik0Z ~]# cd Term-Animation-2.4
[root@iZo7e61fz42ik0Z Term-Animation-2.4]# perl Makefile.PL && make
[root@iZo7e61fz42ik0Z Term-Animation-2.4]# make install
[root@iZo7e61fz42ik0Z Term-Animation-2.4]#cd ~
[root@iZo7e61fz42ik0Z ~]# wget --no-check-certificate http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz
[root@iZo7e61fz42ik0Z ~]# tar -zxvf asciiquarium.tar.gz
[root@iZo7e61fz42ik0Z ~]# cd asciiquarium_1.1/
[root@iZo7e61fz42ik0Z asciiquarium_1.1]# cp asciiquarium /usr/games/
[root@iZo7e61fz42ik0Z asciiquarium_1.1]# chmod 755 /usr/games/asciiquarium
[root@iZo7e61fz42ik0Z asciiquarium_1.1]# /usr/games/asciiquarium

效果:

常见错误:

Can't locate Data/Dumper.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/share/perl5/Term/Animation.pm line 10.

BEGIN failed--compilation aborted at /usr/local/share/perl5/Term/Animation.pm line 10.

Compilation failed in require at /usr/games/asciiquarium line 42.

BEGIN failed--compilation aborted at /usr/games/asciiquarium line 42.

解决:

[root@iZo7e61fz42ik0Z ~]# wget http://www.cpan.org/modules/by-module/Data/Data-Dumper-2.154.tar.gz
[root@iZo7e61fz42ik0Z ~]# tar xvzf Data-Dumper-2.154.tar.gz
[root@iZo7e61fz42ik0Z ~]# cd Data-Dumper-2.154
[root@iZo7e61fz42ik0Z Data-Dumper-2.154]# perl Makefile.PL  && make
[root@iZo7e61fz42ik0Z Data-Dumper-2.154]# make install
  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值