PDA

View Full Version : [SOLVED] trouble running perl script.



owners4life5
December 10th, 2010, 01:30 AM
hello,

i am trying to find a screensaver for my terminal, right, and i finally find one called 'asciiquarium'. http://www.robobunny.com/projects/asciiquarium/html/
anyway, it looks interesting and all, i have marked the file as executable and everything, but when i go to run it, i get this:


brian@brian-COMPAQ-Presario-SR1103WM:~/Downloads/asciiquarium_1.0$ ./asciiquarium
Can't locate Term/Animation.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./asciiquarium line 42.
BEGIN failed--compilation aborted at ./asciiquarium line 42.
brian@brian-COMPAQ-Presario-SR1103WM:~/Downloads/asciiquarium_1.0$


what can i do for this??? i would really like to have that screensaver..

bhaverkamp
December 10th, 2010, 01:47 AM
Use cpan to install Term::Animation. There is an option to setup the CPAN installers to chase down dependencies. I forget the details on that; otherwise you may need to run CPAN more than once to handle the other missing libraries.

wojox
December 10th, 2010, 01:53 AM
http://www.robobunny.com/projects/asciiquarium/README

sisco311
December 10th, 2010, 01:58 AM
http://www.robobunny.com/projects/asciiquarium/README

+1

@OP:

You have to install libcurses-perl and the Term::Animation (http://search.cpan.org/~kbaucom/Term-Animation-2.4/lib/Term/Animation.pm) module.

owners4life5
December 10th, 2010, 02:04 AM
Use cpan to install Term::Animation. There is an option to setup the CPAN installers to chase down dependencies. I forget the details on that; otherwise you may need to run CPAN more than once to handle the other missing libraries.

i don.t have very much experience with perl, so how exactly do i go about doing this?

sisco311
December 10th, 2010, 02:08 AM
i don.t have very much experience with perl, so how exactly do i go about doing this?

You download the module from the link I posted. Extract it and read the README file for installation instructions. You have to run make install as root (sudo make install).

owners4life5
December 10th, 2010, 02:12 AM
+1

@OP:

You have to install libcurses-perl and the Term::Animation (http://search.cpan.org/~kbaucom/Term-Animation-2.4/lib/Term/Animation.pm) module.

that did it.

attached is a screenshot of it working. thank you guys very much. marking as solved.

sisco311
December 10th, 2010, 02:16 AM
Cool! You're welcome.