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

通过安装并配置Asciiquarium,一款用Perl语言编写的ASCII动画软件,可以在终端中展示生动的水族馆效果,为枯燥的命令行界面增添乐趣。本文详细介绍了在Linux环境下安装和运行Asciiquarium的步骤,包括必要的依赖包安装、源码编译及常见错误的解决方案。
1917





