• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item3640: Configure extensions installer does not install anything

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Closed   patch 4.1.2

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

As I was trying to see if I broke anything with the changes needed for perl 5.6.1 I tested installation of plugins.

And it failed. It turns out that no matter which version. 4.1.1. Patch04x01 without my changes. 2 different test machines.

Installing for example VotePlugin gives this run

Fetching http://twiki.org/p/pub/Plugins/VotePlugin/VotePlugin.tgz...
Unpacking...
lib/
lib/TWiki/
lib/TWiki/Plugins/
lib/TWiki/Plugins/VotePlugin/
lib/TWiki/Plugins/VotePlugin/Core.pm
lib/TWiki/Plugins/VotePlugin.pm
bin/
bin/vote
VotePlugin_installer.pl
pub/
pub/TWiki/
pub/TWiki/VotePlugin/
pub/TWiki/VotePlugin/rightbar.gif
pub/TWiki/VotePlugin/leftbar.gif
pub/TWiki/VotePlugin/mainbar.gif
data/
data/TWiki/
data/TWiki/VotePlugin.txt

Error: Failed to move file 'bin/vote' to bin/vote: No such file or directory
VotePlugin_installer.pl ran without errors

Installation finished.

Looks fine at first glance. BUT NOTHING IS INSTALLED.

It is not just the strange error at the end. No file at all shows up in the TWiki tree. And I cannot find them anywhere.

-- TWiki:Main.KennethLavrsen - 15 Feb 2007

Update. It turns out it works on my machine that runs Centos 4.4 and TWiki 4.1.1 non SVN checkout.

I think it is related to CPAN dependencies. I have the feeling the OS zip code is the problem.

KJL

OK. In the above example the bin/vote is missing so things do not work right.

And on my Patch04x01 branch and different machine I get this

Fetching http://twiki.org/p/pub/Plugins/VotePlugin/VotePlugin.tgz...
Unpacking...
Archive::Tar is not installed; trying tar on the command-line VotePlugin_installer.pl bin/ bin/vote data/ data/TWiki/ data/TWiki/VotePlugin.txt lib/ lib/TWiki/ lib/TWiki/Plugins/ lib/TWiki/Plugins/VotePlugin/ lib/TWiki/Plugins/VotePlugin/Core.pm lib/TWiki/Plugins/VotePlugin.pm pub/ pub/TWiki/ pub/TWiki/VotePlugin/ pub/TWiki/VotePlugin/leftbar.gif pub/TWiki/VotePlugin/mainbar.gif pub/TWiki/VotePlugin/rightbar.gif bin/
bin/vote
pub/
pub/TWiki/
pub/TWiki/VotePlugin/
pub/TWiki/VotePlugin/leftbar.gif
pub/TWiki/VotePlugin/rightbar.gif
pub/TWiki/VotePlugin/mainbar.gif
lib/
lib/TWiki/
lib/TWiki/Plugins/
lib/TWiki/Plugins/VotePlugin/
lib/TWiki/Plugins/VotePlugin/Core.pm
lib/TWiki/Plugins/VotePlugin.pm
VotePlugin_installer.pl
data/
data/TWiki/
data/TWiki/VotePlugin.txt

Error: Failed to move file 'bin/vote' to bin/vote: No such file or directory
Software error:
Can't locate Archive/Tar.pm in @INC (@INC contains: /usr/local/apache2/twiki41/lib/CPAN/lib//arch /usr/local/apache2/twiki41/lib/CPAN/lib//5.8.6/i386-linux-thread-multi /usr/local/apache2/twiki41/lib/CPAN/lib//5.8.6 /usr/local/apache2/twiki41/lib/CPAN/lib/ /usr/local/apache2/twiki41/lib /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.6/i386-linux-thread-multi /usr/lib/perl5/5.8.6 .) at (eval 58) line 2.
BEGIN failed--compilation aborted at (eval 58) line 2.
 on bin/vote at /usr/local/apache2/twiki41/lib/TWiki/Configure/UIs/EXTEND.pm line 149.For help, please send mail to the webmaster (kenneth@lavrsen.dk), giving this error message and the time and date of the error. 

So even if the Extension installer is now supposed to work without Archive::Tar is does not.

-- TWiki:Main.KennethLavrsen - 15 Feb 2007

Or is it really Archive::Tar that fails? I am not sure the EXTEND.pm line 149 seems to just report an earlier error and it is not certain that the error reported is the error that triggers the script to stop.

-- TWiki:Main.KennethLavrsen - 15 Feb 2007

I think I have a fix now for the bin/vote error. Still searching for why it fails on the installation without Archive::Tar

-- TWiki:Main.KennethLavrsen - 15 Feb 2007

I know why now. Making a fix

-- TWiki:Main.KennethLavrsen - 15 Feb 2007

There were two errors.

  • After doing some file copying a die checked on $@. But $@ is only set after an eval. So the script died for no reason when en eval of Archive::Tar had failed. The command line unzip worked OK. It just died because of the wrong check. I replaced it with some simple dies following the already existing error messages.
  • The path created for files in bin were relative. All others absolute. The code seems to expect absolute. Fixed this by also making bin dir path absolute.

I have seen additional errors with other plugins but will open seperate bug item for that.

-- TWiki:Main.KennethLavrsen - 16 Feb 2007

Closed with release of 4.1.2

KJL

Cleaned "WaitingFor" field.

-- TWiki:Main.GilmarSantosJr - 10 Aug 2008

ItemTemplate
Summary Configure extensions installer does not install anything
ReportedBy TWiki:Main.KennethLavrsen
Codebase 4.1.1, ~twiki4
SVN Range TWiki-4.1.1, Wed, 14 Feb 2007, build 12874
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins 12886 12887
TargetRelease patch
ReleasedIn 4.1.2
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2008-08-10 - GilmarSantosJr
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback