SLAX 6 Install problems: Number found where operator expected at nzbperl.pl line 2074, near "ReadMode 2" (Do you need to predeclare ReadMode?) Number found where operator expected at nzbperl.pl line 2077, near "ReadMode 0"

176 views
Skip to first unread message

ATT

unread,
Nov 13, 2009, 5:21:53 AM11/13/09
to nzbperl
Hello,
I tried to install NZBPERL.pl to Slax6, to no avail.
First, it was giving errors that "Term::ReadKey" was missing.
So I did :
download Term::Readkey

h2xs -X -n Term::ReadKey
perl Makefile.pl
make
make test
make install

This worked fine.
But when I started the nzbperl script I got :

root@slax:~/perlworks# perl nzbperl.pl
Number found where operator expected at nzbperl.pl line 2074, near
"ReadMode 2"
(Do you need to predeclare ReadMode?)
Number found where operator expected at nzbperl.pl line 2077, near
"ReadMode 0"
(Do you need to predeclare ReadMode?)
syntax error at nzbperl.pl line 2074, near "ReadMode 2"
syntax error at nzbperl.pl line 2077, near "ReadMode 0"
Execution of nzbperl.pl aborted due to compilation errors.

I use the latest Perl lzm package called "perl-5.10.0-1.lzm", it needs
13,680,640 bytes.
Can you help ?

ATT

unread,
Nov 13, 2009, 8:33:46 AM11/13/09
to nzbperl

I'm sorry, I did it wrong. h2xs was the wrong way of installing. Now I
downloaded all perlmodules (.tar.gz) from CPAN properly and it works!
Some of the modules are dependent on other modules. The complete list
of Perl modules I installed is :

HTML-Parser-3.64.tar.gz
HTML-Tagset-3.20.tar.gz
IO-Socket-INET6-2.56.tar.gz
IO-Socket-Socks-0.1.tar.gz
IO-Socket-SSL-1.31.tar.gz
libwww-perl-5.833.tar.gz
Net-HTTPTunnel-0.51.tar.gz
Net-SSLeay-1.35.tar.gz
pmtools-1.10.tar.gz
Socket6-0.23.tar.gz
TermReadKey-2.30.tar.gz
XML-DOM-1.44.tar.gz
XML-RegExp-0.03.tar.gz
XML-Simple-2.18.tar.gz

This went like, "untar, ungzip, perl Makefile.pl, make, make install"

Now it works.

But I still have a problem, that is welldocumented in this list
already : SSL-Connections are all hanging. They start for the first
few seconds, then the speed drops to zero and keeps being zero. Any
suggestions ?

ATT

unread,
Nov 13, 2009, 11:42:09 AM11/13/09
to nzbperl
Finally I made a Slax LZM module that contains all needed files to run
NZBPERL.

To ensure that nzbperl will run properly, several additional modules
are required:

mysql-5.0.67-1.lzm http://www.slax.org/modules.php?action=detail&id=1314
(required for Perl)
perl-5.10.0-1.lzm http://www.slax.org/modules.php?action=detail&id=1371
(required)
uudeview-0.5.20-i486-1as.lzm
http://public.nimblex.net/Download/lzm-2008/browse/viewing/network/uudeview-0.5.20-i486-1as.lzm/

Instructions: Get all modules and place them into your modules
folder.

The proper commandline to start this console application is:

perl /usr/bin/nzbperl.pl --server server:port --user username --pw
yourpasswd --conn 8 name_of_nzbfile.nzb

Additional options can be found via the manual (perl /usr/bin/
nzbperl.pl --help)


Technical details: The installed Perl modules are:
HTML-Parser-3.64.tar.gz
HTML-Tagset-3.20.tar.gz
IO-Socket-INET6-2.56.tar.gz
IO-Socket-Socks-0.1.tar.gz
IO-Socket-SSL-1.31.tar.gz
libwww-perl-5.833.tar.gz
Net-HTTPTunnel-0.51.tar.gz
Net-SSLeay-1.35.tar.gz
pmtools-1.10.tar.gz
Socket6-0.23.tar.gz
TermReadKey-2.30.tar.gz
XML-DOM-1.44.tar.gz
XML-RegExp-0.03.tar.gz
XML-Simple-2.18.tar.gz

Please also see: http://www.slax.org/modules.php?action=detail&id=3053

Reply all
Reply to author
Forward
0 new messages