When installing extensions using the extender.pl script (from the configure page), it mostly fails with the following message:
Error: Installer returned errors:
No data could be read from file at tools/extender.pl line 684
It seems to be related to plugins having an install script, only on windows. Some debugging pointed to the fact that the saved extension.tgz file was corrupted in the twiki root directory. It seems to be related to the fact that Perl on windows (Activestate perl) translates LF to CRLF in the "print F $response->content();" statement (line 583) in extender.pl.
I have tested that by adding "binmode(F);" before this print solves this problem on windows.
--
TWiki:Main/ThysNel
- 16 Jan 2009
Hi,
i am confused with line number - do you mean line number 538? Did you change following lines code?
534 if( $response->is_success() ) {
535 $f = $downloadDir.'/'.$module.$type;
536 open(F, ">$f" ) || die "Failed to open $f for write: $!";
537 print F $response->content();
538 close(F);
539 last;
540 }
--
TWiki:Main.SopanShewale
- 12 Feb 2009
Incorporated changes suggested by
TWiki:Main.ThysNel
--
TWiki:Main.SopanShewale
- 12 Feb 2009