Skip to content
Advertisement

Run a perl script with the ending .pl

I have a question to perl scripts. I can write and understand C and C++ codes but have no experience in perl.

I have a perl script with the extension .pl and want to run it on a Raspberry Pi Model B.

I get the script (its a part of the Raspberry Pi B extension ‘Busware SD0’ Firmware) from this link

If I run the script I get the following error:

Can't locate POE.pm in @INC (@INC contains: /etc/perl /usr/local/lib/per /5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5  /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at   
./vzfeeder.pl line 6.
BEGIN failed--compilation aborted at ./vzfeeder.pl line 6.

How can I start function/method on the console I hope you can help me?

Regards

Advertisement

Answer

The error message is telling you, that a Perl module (think of a library) used in the script is not installed on your system.

If you take a look at your script you will find statements starting with “use” at the beginning of it. Those are the modules referenced.

You will have to find out, which package of your package management system (deb, rpm?) contains them and install them accordingly.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement