I have Debian 6.
I want install script PHP with perl demon. I install perl etc.
apt-get install perl build-essential
In demon.pl I have lines:
use Frontier::Daemon::Forking;
use Crypt::XXTEA;
use Cfg::Config; Blockquote use Unix::PasswdFile;
use MIME::Base64;
use File::Find;
use File::Slurp;
use File::Copy::Recursive qw(fcopy rcopy dircopy fmove rmove dirmove pathempty pathrmdir);
I found, that I must open:
perl -MCPAN -e shell
and install
install Frontier::Daemon::Forking
install Crypt::XXTEA
install Cfg::Config
install Unix::PasswdFile
install MIME::Base64
install File::Find
install File::Slurp
install File::Copy::Recursive
With all is ok without Cfg::Config, I have error:
Warning: Cannot install Cfg::Config, don't know what it is.
Try the command
i /Cfg::Config/
to find objects with matching identifiers.
CPAN: Time::HiRes loaded ok (v1.9719)
On end I try run demon.pl but have errors
./demon.pl: line 1: use: command not found
: command not found
./demon.pl: line 2: use: command not found
: command not found
./demon.pl: line 3: use: command not found
: command not found
./demon.pl: line 4: use: command not found
: command not found
./demon.pl: line 5: use: command not found
: command not found
./demon.pl: line 6: use: command not found
: command not found
./demon.pl: line 7: use: command not found
: command not found
./demon.pl: line 8: syntax error near unexpected token `('
./demon.pl: line 8: `use File::Copy::Recursive qw(fcopy rcopy dircopy fmove rmov' dirmove pathempty pathrmdir);