create new tag
, view all tags

SID-01397: CPAN is not available

Status: Unanswered Unanswered TWiki version: 5.1.1 Perl version: perl, v5.10.1
Category: CategoryInstallation Server OS: Red Hat Enterprise Linux Server release 6.2 Last update: 5 years ago


I have followed this http://twiki.org/cgi-bin/view/TWiki/HowToInstallCpanModules and this http://twiki.org/cgi-bin/view/Codev/TWikiOnRedHat

I tried rpm and manual methods to install CPAN

But I still get this :

Warning: CPAN is not available, some installer functions have been disabled

When I try to install plugins or extensions from the web installer.

Could anyone help ?


-- OlivierGuillard - 2012-02-08

Discussion and Answer

Try to resolve the dependencies first on the shell level. Use yum install ... if package is available, else follow the instructions in HowToInstallCpanModules. Once the dependencies are solved you should be able to install the plugin via the configure script. You can install plugins also manually.

-- PeterThoeny - 2012-02-08

Thanks Peter, but that is already done, see below :

# rpm -qa | grep -i CPAN
perl-Parse-CPAN-Meta-1.40-119.el6_1.1.x86_64 perl-CPANPLUS-0.88-119.el6_1.1.x86_64 perl-CPAN-1.9402-119.el6_1.1.x86_64

# rpm -qa | grep perl-CGI-Session


# rpm -qa | grep FreezeThaw


# rpm -qa | grep gd-


I have also downloaded and installed manually specific perl modules :

# cd /data/my-build
# ls

CPAN-1.9800/                       HTML-Tree-4.2/                     perl-ldap-0.44/                 Test-Exception-0.31/
Unicode-Map-0.112/              Unicode-MapUTF8-1.11/        Authen-SASL-2.15/          Digest-MD5-2.51/ Jcode-2.07/
Sub-Uplevel-0.22/                 Unicode-Map8-0.13/              Unicode-String-2.09/        Time-modules-2011.0517/

Since I want these modules to be only installed and used by twiki (outside of the global packaged system), I have installed them like this :

# cd /data/my-build/perl-modulexxx
# perl -I /data/twiki/lib/ Makefile.PL INSTALL_BASE=/data/twiki/
# make
# make install 

/data/twiki is the twiki web root

I also have added this in /data/twiki/bin/LocalLib.cfg:

 $twikiLibPath = "/data/twiki/lib";

@localPerlLibPath = ( '/data/twiki/lib, /data/twiki/lib/perl5' )

As you can see, CPAN is installed both as a whole system package and as a specific twiki library as well, but I still get this warning :

Warning: CPAN is not available, some installer functions have been disabled

and installation of an extension such as LdapContrib fails

-- OlivierGuillard - 2012-02-09

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 - 2012-07-01

      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.
Status Unanswered
Title CPAN is not available
SupportCategory CategoryInstallation
TWiki version 5.1.1
Server OS Red Hat Enterprise Linux Server release 6.2
Web server Apache/2.2.15
Perl version perl, v5.10.1
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2012-07-01 - 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.