SID-01073: Unable to install plugins via configure
| Status: |
Answered |
TWiki version: |
5.0.1 |
Perl version: |
Perl v5.10.0 |
| Category: |
CategoryInstallation |
Server OS: |
Fedora 10 |
Last update: |
12 years ago |
Hi
I'm unable to install plugins via configure. I have try a couple of them,
CalendarPlugin DatabasePlugin etc. I have root access and I have read
HowToInstallCpanModules and it is up to date after updating. I have not assigned assinged a private CPAN lib
This is the output from one install attempt:
Install TWiki Extension
Fetching http://twiki.org/p/pub/Plugins/DateFieldPlugin/DateFieldPlugin.tgz...
Unpacking...
DateFieldPlugin_installer
data/
data/TWiki/
data/TWiki/DateFieldPlugin.txt
lib/
lib/TWiki/
lib/TWiki/Plugins/
lib/TWiki/Plugins/DateFieldPlugin.pm
Warning: CPAN is not available, some installer functions have been disabled
### DateFieldPlugin Installer ###
This installer must be run from the root directory of your TWiki
installation.
* You can abort the script at any point and re-run it later
* If you answer 'no' to any questions you can always re-run
the script again later
Error: Installer returned errors:
Insecure dependency in eval while running with -T switch at tools/extender.pl line 215. at tools/extender.pl line 215
TWiki::Extender::satisfy('HASH(0xa9e647c)') called at tools/extender.pl line 921
TWiki::Extender::_install('ARRAY(0xae7ff44)', 'DateFieldPlugin') called at tools/extender.pl line 1052
TWiki::Extender::install('http://twiki.org/p/pub/Plugins', 'DateFieldPlugin', 'DateFieldPlugin', 'MANIFEST', 'data/TWiki/DateFieldPlugin.txt,0664,Plugin topic\x{a}lib/TWiki/Pl...', 'DEPENDENCIES', 'TWiki::Contrib::JSCalendarContrib,>=7071,1,perl,Used to displ...') called at /var/www/html/twiki/DateFieldPlugin_installer line 104
require /var/www/html/twiki/DateFieldPlugin_installer called at /var/www/html/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 165
eval {...} called at /var/www/html/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 162
TWiki::Configure::UIs::EXTEND::ui('TWiki::Configure::UIs::EXTEND=HASH(0xa042614)') called at /var/www/html/twiki/bin/configure line 708
TWiki::_actionInstallExtension() called at /var/www/html/twiki/bin/configure line 478 at /usr/lib/perl5/5.10.0/CGI/Carp.pm line 356
CGI::Carp::realdie('Insecure dependency in eval while running with -T switch at t...') called at /usr/lib/perl5/5.10.0/CGI/Carp.pm line 437
CGI::Carp::die('Insecure dependency in eval while running with -T switch at t...') called at /var/www/html/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 167
eval {...} called at /var/www/html/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 162
TWiki::Configure::UIs::EXTEND::ui('TWiki::Configure::UIs::EXTEND=HASH(0xa042614)') called at /var/www/html/twiki/bin/configure line 708
TWiki::_actionInstallExtension() called at /var/www/html/twiki/bin/configure line 478
Although it seems if I run the plugin installer from command line later it installs.
It did work in earlier twiki version 4.3. Please advice
/Klas
--
KlasSehlstedt - 2011-01-09
Discussion and Answer
Known issue in certain environments. See related
SID-00919 and bug report
TWikibug:Item6534
.
--
PeterThoeny - 2011-01-09
Could you check if this fixes the issue? Add the two
red lines to
twiki/tools/extender.pl near line 988:
my @deps;
foreach my $row (split(/\r?\n/, $data{DEPENDENCIES})) {
my ($module, $condition, $trigger, $type, $desc) = split(',', $row, 5);
$module =~ s/[^a-zA-Z0-9\:\_\-]//g; # allow limited chars only
$module = TWiki::Sandbox::untaintUnchecked( $module ); # untaint safe module name
$trigger =~ s/[^a-zA-Z0-9\_\-]//g;
$trigger = TWiki::Sandbox::untaintUnchecked( $trigger );
push(@deps, {
name=>$module,
type=>$type,
version=>$condition, # version condition
trigger => $trigger, # ONLYIF condition
description=>$desc,
});
--
PeterThoeny - 2011-01-09
No Didn't help, tried to install
ChartPluginwith this result
Warning: CPAN is not available, some installer functions have been disabled
### ChartPlugin Installer ###
This installer must be run from the root directory of your TWiki
installation.
* You can abort the script at any point and re-run it later
* If you answer 'no' to any questions you can always re-run
the script again later
Error: Installer returned errors:
Insecure dependency in eval while running with -T switch at tools/extender.pl line 215.
at tools/extender.pl line 215
TWiki::Extender::satisfy('HASH(0x92573a4)') called at tools/extender.pl line 921
TWiki::Extender::_install('ARRAY(0x9daaec4)', 'ChartPlugin') called at tools/extender.pl line 1054
TWiki::Extender::install('http://twiki.org/p/pub/Plugins', 'ChartPlugin', 'ChartPlugin', 'MANIFEST', 'data/TWiki/ChartPlugin.txt,0644,\x{a}data/TWiki/ChartPluginTests....', 'DEPENDENCIES', 'gd,>0,1,c,Required. Available from http://www.libgd.org/\x{a}GD,>...') called at /var/www/html/twiki/ChartPlugin_installer line 104
require /var/www/html/twiki/ChartPlugin_installer called at /var/www/html/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 165
eval {...} called at /var/www/html/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 162
TWiki::Configure::UIs::EXTEND::ui('TWiki::Configure::UIs::EXTEND=HASH(0x8cde60c)') called at /var/www/html/twiki/bin/configure line 708
TWiki::_actionInstallExtension() called at /var/www/html/twiki/bin/configure line 478
at /usr/lib/perl5/5.10.0/CGI/Carp.pm line 356
CGI::Carp::realdie('Insecure dependency in eval while running with -T switch at t...') called at /usr/lib/perl5/5.10.0/CGI/Carp.pm line 437
CGI::Carp::die('Insecure dependency in eval while running with -T switch at t...') called at /var/www/html/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 167
eval {...} called at /var/www/html/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 162
TWiki::Configure::UIs::EXTEND::ui('TWiki::Configure::UIs::EXTEND=HASH(0x8cde60c)') called at /var/www/html/twiki/bin/configure line 708
TWiki::_actionInstallExtension() called at /var/www/html/twiki/bin/configure line 478
You may be able to resolve these errors and complete the installation from the command line, so I will leave the installed files where they are.
Installation finished.
Note: Before you can use newly installed plugins, you must enable them in the "Plugins" section in the main page.
Manual install OK.
Contect switch: Another annoying thing is that I have to authentica after clicking "find extentions" and once again after clicking install. I have the TWiki::LoginManager::Template login
--
KlasSehlstedt - 2011-01-11
One other observation extender.pl did not have the execute flag set, The same holds for upgrade_emails.pl. I have added the execute flag on both files.
--
KlasSehlstedt - 2011-01-11
Unfortunately I can't verify the issue in my environment. Please try this: Add the three
red lines to
twiki/lib/TWiki/Configure/UIs/EXTEND.pm near line 156:
if ($installScript && -e $installScript) {
# clean and untaint installer script
$installScript =~ s/[^a-zA-Z0-9\_\-\:\/\\\.]//g;
$installScript =~ /^(.*)$/;
$installScript = $1;
# invoke the installer script.
# SMELL: Not sure yet how to handle
# interaction if the script ignores -a. At the moment it
# will just hang :-(
chdir($this->{root});
--
PeterThoeny - 2011-01-10
I modified both scripts, but this didn't work out for me. See SID-01078.
--
KaiABecker - 2011-01-20
I meanwhile tried two other environments: recent debian and fedora release 32bit on a testing VM. Same result.
What environment do you use or is there any advise on what OS should be used?
--
KaiABecker - 2011-01-26
Hmm, there is a fundamental issue we need to track down. My TWiki dev machine is an older RedHat RHEL3, and I do not recommend using this for production.
--
PeterThoeny - 2011-01-27
It didn't help to change EXTEND.pm according to the above.
Result: Insecure dependency in eval while running with -T switch at tools/extender.pl line 215. at tools/extender.pl line 215 TWiki::Extender::satisfy('HASH(0x9aed27c)') called at tools/extender.pl line 921 TWiki::Extender::_install('ARRAY(0xa6345ec)', 'ChecklistPlugin') called at tools/extender.pl line 1054 TWiki::Extender::install('http://twiki.org/p/pub/Plugins', 'ChecklistPlugin', 'ChecklistPlugin', 'MANIFEST', 'data/TWiki/ChecklistPlugin.txt,0664,NEW\x{a}lib/TWiki/Plugins/Che...', 'DEPENDENCIES', 'TWiki::Plugins::SmiliesPlugin,,1,perl,Required\x{a}\x{a}') called at /var/www/html/twiki/ChecklistPlugin_installer line 104 require /var/www/html/twiki/ChecklistPlugin_installer called at /var/www/html/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 171 eval {...} called at /var/www/html/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 168 TWiki::Configure::UIs::EXTEND::ui('TWiki::Configure::UIs::EXTEND=HASH(0x955b614)') called at /var/www/html/twiki/bin/configure line 708 TWiki::_actionInstallExtension() called at /var/www/html/twiki/bin/configure line 478 at /usr/lib/perl5/5.10.0/CGI/Carp.pm line 356 CGI::Carp::realdie('Insecure dependency in eval while running with -T switch at t...') called at /usr/lib/perl5/5.10.0/CGI/Carp.pm line 437 CGI::Carp::die('Insecure dependency in eval while running with -T switch at t...') called at /var/www/html/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 173 eval {...} called at /var/www/html/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 168 TWiki::Configure::UIs::EXTEND::ui('TWiki::Configure::UIs::EXTEND=HASH(0x955b614)') called at /var/www/html/twiki/bin/configure line 708 TWiki::_actionInstallExtension() called at /var/www/html/twiki/bin/configure line 478
--
KlasSehlstedt - 2011-02-11
I am trying to install this Kinosearch Plugin on Twiki4.1.0/Windows/Abyss Server, I have Visual Studio 2010 installed on my machine but i am getting this compiler error.................
Lingua-Stem-Snowball-0.952/Makefile.PL
CPAN.pm: Going to build C/CR/CREAMYG/Lingua-Stem-Snowball-0.952.tar.gz
# running Build.PL --installdirs site 'cl' is not recognized as an internal or external command, operable program or batch file. Warning:
ExtUtils::CBuilder not installed or no compiler detected Proceeding with configuration, but compilation may fail during Build
Creating new 'MYMETA.yml' with configuration results Creating new 'Build' script for 'Lingua-Stem-Snowball' version '0.952' 'nmake' is not recognized as an internal or external command, operable program or batch file. CREAMYG/Lingua-Stem-Snowball-0.952.tar.gz nmake -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible
I am not sure how can I resolve this issue? As I have C complier(VS2010) but still I am getting this complier error. Please help me to resolve this issue. Or guide me the right forum for this problem.
--
ArchnaAgarwal - 2011-03-02
This is a cross-post of
SID-01115. Please do not cross post, and please do not add new support support questions to unrelated existing questions.
--
PeterThoeny - 2011-03-02
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2011-05-02
I'm seeing exactly this problem on a new installation of TWiki 5.1.0. I've tried a number of plugins; for example:
Warning: CPAN is not available, some installer functions have been disabled
### ActionTrackerPlugin Installer ###
This installer must be run from the root directory of your TWiki
installation.
* You can abort the script at any point and re-run it later
* If you answer 'no' to any questions you can always re-run
the script again later
Error: Installer returned errors:
Insecure dependency in eval while running with -T switch at tools/extender.pl line 215.
at tools/extender.pl line 215
[output snipped]
--
KeithEdmunds - 2011-09-20
Update (apologies for poor formatting above - thought 'pre' would work).
Removing the '-T' from the 'configure' file AND configuring CPAN for the Apache user seems to have resolved this.
--
KeithEdmunds - 2011-09-20
Thanks for the update Keith. I fixed the pre-formatting.
--
PeterThoeny - 2011-09-20
I get a similar issue when I try to install
LdapContrib on TWiki-5.1.1, my main confusion starts with the message
"Warning: CPAN is not available, some installer functions have been disabled" since I have installed this module both using yum and manually.
Note about my plateform : Red Hat Enterprise Linux Server release 6.2 (Santiago)
Here is the dump from the web installer : (ANY idea ?)
Fetching http://twiki.org/p/pub/Plugins/LdapContrib/LdapContrib.tgz...
Unpacking...
lib/
lib/TWiki/
lib/TWiki/Contrib/
lib/TWiki/Contrib/LdapContrib/
lib/TWiki/Contrib/LdapContrib/Config.spec
lib/TWiki/Contrib/LdapContrib.pm
lib/TWiki/Users/
lib/TWiki/Users/LdapUserMapping.pm
lib/TWiki/Users/LdapPasswdUser.pm
lib/TWiki/LoginManager/
lib/TWiki/LoginManager/LdapApacheLogin.pm
data/
data/TWiki/
data/TWiki/LdapContrib.txt
LdapContrib_installer
tools/
tools/ldaptest
Warning: CPAN is not available, some installer functions have been disabled
### LdapContrib Installer ###
This installer must be run from the root directory of your TWiki
installation.
* You can abort the script at any point and re-run it later
* If you answer 'no' to any questions you can always re-run
the script again later
##########################################################
Checking dependency on Authen::SASL....
*** LdapContrib depends on cpan package Authen::SASL >=2.00
which is described as "Optional"
But when I tried to find it I got this error:
Insecure dependency
##########################################################
Checking dependency on DB_File....
*** LdapContrib depends on cpan package DB_File >=1.00
which is described as "Required"
But when I tried to find it I got this error:
Insecure dependency
##########################################################
Checking dependency on Digest::MD5....
##########################################################
Checking dependency on Net::LDAP....
*** LdapContrib depends on cpan package Net::LDAP >=0.33
which is described as "Required"
But when I tried to find it I got this error:
Attempt to reload Net/LDAP.pm aborted.
Compilation failed
##########################################################
Checking dependency on IO::Socket::SSL....
*** LdapContrib depends on cpan package IO::Socket::SSL >=1.0
which is described as "Optional"
But when I tried to find it I got this error:
Insecure dependency
##########################################################
Checking dependency on Unicode::MapUTF8....
*** LdapContrib depends on cpan package Unicode::MapUTF8 >=1.11
which is described as "Required"
But when I tried to find it I got this error:
Insecure dependency
Fetching the archive for TWiki::Contrib::LdapContrib.
Error: Installer returned errors:
Insecure dependency in require while running with -T switch at /usr/share/perl5/LWP/UserAgent.pm line 384, chunk 1.
at /usr/share/perl5/LWP/UserAgent.pm line 384
LWP::UserAgent::get('LWP::UserAgent=HASH(0x2599600)', 'http://twiki.org/p/pub/Plugins/LdapContrib/LdapContrib.tgz') called at tools/extender.pl line 535
TWiki::Extender::getComponent('LdapContrib', 'ARRAY(0x1fb18f8)', 'archive') called at tools/extender.pl line 562
TWiki::Extender::getArchive('LdapContrib') called at tools/extender.pl line 950
TWiki::Extender::_install('ARRAY(0x27fe0f8)', 'LdapContrib') called at tools/extender.pl line 1054
TWiki::Extender::install('http://twiki.org/p/pub/Plugins', 'LdapContrib', 'LdapContrib', 'MANIFEST', 'data/TWiki/LdapContrib.txt,0644,\x{a}lib/TWiki/Contrib/LdapContri...', 'DEPENDENCIES', 'Authen::SASL,>=2.00,1,cpan,Optional\x{a}DB_File,>=1.00,1,cpan,Req...') called at /data/twiki/LdapContrib_installer line 104
require /data/twiki/LdapContrib_installer called at /data/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 171
eval {...} called at /data/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 168
TWiki::Configure::UIs::EXTEND::ui('TWiki::Configure::UIs::EXTEND=HASH(0x16e77b0)') called at /data/twiki/bin/configure line 708
TWiki::_actionInstallExtension() called at /data/twiki/bin/configure line 478
at /usr/share/perl5/CGI/Carp.pm line 379
CGI::Carp::realdie('Insecure dependency in require while running with -T switch a...') called at /usr/share/perl5/CGI/Carp.pm line 468
CGI::Carp::die('Insecure dependency in require while running with -T switch a...') called at /data/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 173
eval {...} called at /data/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 168
TWiki::Configure::UIs::EXTEND::ui('TWiki::Configure::UIs::EXTEND=HASH(0x16e77b0)') called at /data/twiki/bin/configure line 708
TWiki::_actionInstallExtension() called at /data/twiki/bin/configure line 478ender::getComponent('LdapContrib', 'ARRAY(0x1fb18f8)', 'archive') called at tools/extender.pl line 562 TWiki::Extender::getArchive('LdapContrib') called at tools/extender.pl line 950 TWiki::Extender::_install('ARRAY(0x27fe0f8)', 'LdapContrib') called at tools/extender.pl line 1054 TWiki::Extender::install('http://twiki.org/p/pub/Plugins', 'LdapContrib', 'LdapContrib', 'MANIFEST', 'data/TWiki/LdapContrib.txt,0644,\x{a}lib/TWiki/Contrib/LdapContri...', 'DEPENDENCIES', 'Authen::SASL,>=2.00,1,cpan,Optional\x{a}DB_File,>=1.00,1,cpan,Req...') called at /data/twiki/LdapContrib_installer line 104 require /data/twiki/LdapContrib_installer called at /data/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 171 eval {...} called at /data/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 168 TWiki::Configure::UIs::EXTEND::ui('TWiki::Configure::UIs::EXTEND=HASH(0x16e77b0)') called at /data/twiki/bin/configure line 708 TWiki::_actionInstallExtension() called at /data/twiki/bin/configure line 478 at /usr/share/perl5/CGI/Carp.pm line 379 CGI::Carp::realdie('Insecure dependency in require while running with -T switch a...') called at /usr/share/perl5/CGI/Carp.pm line 468 CGI::Carp::die('Insecure dependency in require while running with -T switch a...') called at /data/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 173 eval {...} called at /data/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 168 TWiki::Configure::UIs::EXTEND::ui('TWiki::Configure::UIs::EXTEND=HASH(0x16e77b0)') called at /data/twiki/bin/configure line 708 TWiki::_actionInstallExtension() called at /data/twiki/bin/configure line 478
--
OlivierGuillard - 2012-02-08
I am having the same problem, I did not understand how this was resolved. "Removing the '-T' from the 'configure' file AND configuring CPAN for the Apache user"
Will someone please elaborate on this?
I am using twiki 5.1.1 on Ubuntu 11.04
--
GuyKroizman - 2012-02-29
I'm not sure where the removing -T needs to be done either, however configuring cpan for apache should be possible by doing su - apache -s /bin/bash at that point you can run perl -MCPAN -e shell and it should allow you to configure cpan into whatever apache's home directory is in /etc/passwd (probably /var/www) but you need to make sure apache can write to its home directory first.
if you dont want to use sudo with apache for cpan do this
http://stackoverflow.com/questions/2031956/how-can-i-avoid-sudo-ing-when-installing-perl-modules-with-cpan
--
JudBarron - 2012-06-08
The first line of configure is:
#!/usr/bin/perl -wT
To disable taint checking, remove the T to end up with:
#!/usr/bin/perl -w
--
PeterThoeny - 2012-06-18
I encounter the same problem in my ubuntu server installation with Twiki 5.1.1. After diving into the perl code a while, I think the problem is that the
tools/extender.pl lacking enough debug information.
Please add this into line 61:
59 eval "use $module;";
60 if( $@ ) {
61 print $@; #### add this line
Then, I run install plugin from configure script again, this time it indicates I should remove "-T" option. So remove "-T' option from
configure script. Run it again, and it complains some CPAN modules are missing, and the script cannot install them. Ok, then I use "sudo cpan" to install those CPAN modules. After two or three tries, done, "Installer ran without errors"
--
JunLi - 2012-07-21
UPDATE: This is now fixed in
TWikibug:Item6534
. Action you can take:
- Workaround: Remove the
T switch in the first line of file twiki/bin/configure.
- Manual fix: Please apply patch in TWikibug:Item6534
dated 2012-09-17.
- Wait for fix: The fix will be released in the upcoming TWiki-5.1.2 release (in a few weeks).
--
PeterThoeny - 2012-09-17
Hi!
I installed TWiki-5.1.2.tgz and when i run "configure" and I try to install the
BugsContrib module, I get
Fetching the archive for TWiki::Contrib::BugsContrib.
Error: Installer returned errors:
Insecure dependency in require while running with -T switch at /usr/share/perl5/LWP/UserAgent.pm line 386.
at /usr/share/perl5/LWP/UserAgent.pm line 386
When I edit the file twiki/lib/TWiki/Configure/UIs/EXTEND.pm, it has the new source code as shown at the patch (Bugs.Item6534).
Although the patch doesn't works, the workaround (remove the T switch) does.
Uhm, I have Ubuntu 10.04, Apache 2.2, TWiki 5.1.2 and Perl 5.1
--
VictorLugo - 2012-11-23
Hmm, looks like an additional issue! I can't reproduce on my system. Victor, could you induce a stacktrace by adding a
die; just before that line? Post the stacktrace here so that we can debug the issue.
--
PeterThoeny - 2012-11-23
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
Peter Thoeny - 2013-03-05
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.