Tags:
create new tag
view all tags

SID-01882: Why Do Plugins Want to Install Perl Modules With CPAN

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Why Do Plugins Want to Install Perl Modules With CPAN
SupportCategory CategoryPlugins
TWiki version 6.0.0
Server OS

Web server

Perl version

Browser & version

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2014-03-07 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.