面对枯燥无味的终端,有没有办法让它变的更加有趣呢?快来试一试这个命令!
[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