SID-01882: Why Do Plugins Want to Install Perl Modules With CPAN
Status: |
Answered |
TWiki version: |
6.0.0 |
Perl version: |
|
Category: |
CategoryPlugins |
Server OS: |
|
Last update: |
9 years ago |
I understand why TWiki wants a set of standard CPAN modules and why those are "expected" to be in the canonical library question.
But I don't understand why a given plugin can't/won't install a copy of any required modules in its own subdirectory.
e.g.
CalendarPlugin wants Date::Calc.
Checking dependency on Date::Calc....
*** CalendarPlugin depends on cpan package Date::Calc >=1.000
which is described as "Required. Download from CPAN:Date::Calc"
But when I tried to find it I got this error:
Can't locate Date/Calc.pm
This module is available from the CPAN archive (http://www.cpan.org). You
can download and install it from here. The module will be installed
to wherever you configured CPAN to install to.
Why
installed to wherever you configured CPAN to install to?
Why not installed under twiki/lib?
At the very least, it would be only polite if, upon getting an error like this one:
Warning: You do not have write permission for Perl library directories.
the plugin installer would offer the choice of installing the module in a private library.
--
Vicki Brown - 2014-03-07
Discussion and Answer
Agreed, I am not sure what the point is to install CPAN module from the browser. Better to install on shell as root. Feel free to create a bug item to address this issue.
--
Peter Thoeny - 2014-03-07
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.