Question
I get the following error when i try to create new users.
Software error:
Undefined subroutine &Digest::SHA1::sha1 called at c:\twiki\bin\register line 200.
please help.
- TWiki version:01 dec 2001
- Web server:apache 1.3.27
- Server OS:Win 2000
- Web browser: IE 5.5
- Client OS: Win 2000
--
TWikiGuest - 25 Nov 2002
Answer
See the
WindowsInstallCookbook - this module is included in the step where Perl modules are installed.
Also, since you are on Win2000, see
InstallDigestSHA1Fails in particular - the last comment has some info on how to set the TEMP variable, which is necessary for this module to work. This is already covered in the cookbook, so the best advice is to make sure you follow this.
--
RichardDonkin - 25 Nov 2002
HI !
i re-read the perl mmodules section again , and tried to do a "install Net::SMTP " from cpan prompt....but then i always end up with the following ....
LWP not available
Trying with "/usr/bin/ncftpget" to get
http://www.perl.com/CPAN/ports/win95/Standard/x86/authors/01mailrc
NcFTPGet 3.1.4
Usages:
ncftpget [flags] remote-host local-dir remote-path-names... (mode
ncftpget -f login.cfg [flags] local-dir remote-path-names... (mode
ncftpget [flags] ftp://url.style.host/path/name (mode
ncftpget -c [flags] remote-host remote-path-name > stdout (mode 4)
ncftpget -c [flags] ftp://url.style.host/path/name > stdout (mode 5)
Flags:
-u XX Use username XX instead of anonymous.
-p XX Use password XX with the username.
-P XX Use port number XX instead of the default FTP service port (2
-d XX Use the file XX for debug logging.
-a Use ASCII transfer type instead of binary.
-t XX Timeout after XX seconds.
-v/-V Do (do not) use progress meters.
-f XX Read the file XX for host, user, and password information.
-A Append to local files, instead of overwriting them.
-z/-Z Do (do not) not try to resume downloads (default: -z).
-E Use regular (PORT) data connections.
-F Use passive (PASV) data connections (default).
-DD Delete remote file after successfully downloading it.
-b Run in background (submit job to "ncftpbatch" and run).
:
Please suggest.
.....
Hi !
with reagrds to the above , i could find out the error.though it may seem silly to u guys but , not knowing perl it was a great find for me...
actually the twiki/bin/register script has a # in front of require Digest::SHA1; on line 27.
i removed that # and all worked fine...
regards
--
TWikiGuest - 27 Nov 2002
Hi - I assume the ncftpget problem is still there? (I added some <verbatim> tags around the program output, btw) If so, have a look at
this email digest
and also try doing the following in the Cygwin shell if you are behind a typical NAT-based firewall - this forces Net::FTP to use passive FTP:
$ export FTP_PASSIVE=1
Assuming that Net::FTP is working, this may help. See
man CPAN and
man Net::FTP, and read up on the
o conf command in
cpan that lets you change your configuration to use one or another way of downloading things.
Unfortunately CPAN is fairly hard to get working... It would help if you included the complete output from a CPAN session (set the Buffer in the right-click Properties for the Cygwin window to be as high as possible.)
UPDATE: The real problem is that ncftpget is being asked to use an http URL when it only supports FTP! So, try the following at the cpan> prompt:
o conf
o conf ncftpget ''
o conf
o conf commit
The second line disables ncftpget. You might want to try installing Lynx and make sure that it is configured for use by cpan, or try
wget which should already be installed.
The last line (
o conf commit) saves your config in a Config.pm file for use next time - you might want to only do this after a successful download + install.
If you are really stuck, comment here and I'll attach the Net::SMTP files from my Cygwin setup.
--
RichardDonkin - 28 Nov 2002