Permission to install PERL modules


#1

Hi everyone, I’m trying to install Bugzilla 3.6.3 on my server but so far I got no results doing that. I’m following the documentation on Dreamhost’s wiki page http://wiki.dreamhost.com/Bugzilla. I’ll try to explain step-by-step so you can see what my problem is.

  1. Using PuTTy, I did the following command:

And I got the following message:

[code]* This is Bugzilla 3.6.3 on perl 5.10.0

  • Running on Linux 2.6.32.8-grsec-2.1.14-modsign-xeon-64 #2 SMP Sat Mar 13 00:42:43 PST 2010

Checking perl modules…
Checking for CGI.pm (v3.33) ok: found v3.49
Checking for Digest-SHA (any) ok: found v5.45
Checking for TimeDate (v2.21) ok: found v2.22
Checking for DateTime (v0.28) ok: found v0.42
Checking for DateTime-TimeZone (v0.71) ok: found v0.7701
Checking for DBI (v1.41) ok: found v1.605
Checking for Template-Toolkit (v2.22) ok: found v2.22
Checking for Email-Send (v2.00) not found
Checking for Email-MIME (v1.861) not found
Checking for Email-MIME-Encodings (v1.313) not found
Checking for Email-MIME-Modifier (v1.442) not found
Checking for URI (any) ok: found v1.35

Checking available perl DBD modules…
Checking for DBD-Pg (v1.45) ok: found v2.8.7
Checking for DBD-mysql (v4.00) ok: found v4.007
Checking for DBD-Oracle (v1.19) not found

The following Perl modules are optional:
Checking for GD (v1.20) ok: found v2.39
Checking for Chart (v2.1) ok: found v2.4.1
Checking for Template-GD (any) ok: found v1.56
Checking for GDTextUtil (any) ok: found v0.86
Checking for GDGraph (any) ok: found v1.44
Checking for XML-Twig (any) ok: found v3.32
Checking for MIME-tools (v5.406) ok: found v5.427
Checking for libwww-perl (any) ok: found v5.813
Checking for PatchReader (v0.9.4) ok: found v0.9.5
Checking for perl-ldap (any) ok: found v0.36
Checking for Authen-SASL (any) ok: found v2.12
Checking for RadiusPerl (any) ok: found v0.20
Checking for SOAP-Lite (v0.710.06) ok: found v0.710.08
Checking for JSON-RPC (any) ok: found v0.96
Use of uninitialized value in open at lib/x86_64-linux-gnu-thread-multi/Test/Taint.pm line 334, line 253.
Checking for Test-Taint (any) ok: found v1.04
Checking for HTML-Parser (v3.40) ok: found v3.56
Checking for HTML-Scrubber (any) ok: found v0.08
Checking for Email-MIME-Attachment-Stripper (any) not found
Checking for Email-Reply (any) not found
Checking for TheSchwartz (any) ok: found v1.10
Checking for Daemon-Generic (any) ok: found v0.71
Checking for mod_perl (v1.999022) not found


  • REQUIRED MODULES *

  • Bugzilla requires you to install some Perl modules which are either *
  • missing from your system, or the version on your system is too old. *
  • See below for commands to install these modules. *

  • OPTIONAL MODULES *

  • Certain Perl modules are not required by Bugzilla, but by *
  • installing the latest version you gain access to additional *
  • features. *
  •                                                                 *
    
  • The optional modules you do not have installed are listed below, *
  • with the name of the feature they enable. Below that table are the *
  • commands to install each module. *

  •                MODULE NAME * ENABLES FEATURE(S)                 *
    

  • Email-MIME-Attachment-Stripper * Inbound Email *
  •                Email-Reply * Inbound Email                      *
    
  •                   mod_perl * mod_perl                           *
    

COMMANDS TO INSTALL OPTIONAL MODULES:

Email-MIME-Attachment-Stripper: /usr/bin/perl install-module.pl Email::MIME::Attachment::Stripper
Email-Reply: /usr/bin/perl install-module.pl Email::Reply
mod_perl: /usr/bin/perl install-module.pl mod_perl2

COMMANDS TO INSTALL REQUIRED MODULES (You must run all these commands
and then re-run this script):

/usr/bin/perl install-module.pl Email::Send
/usr/bin/perl install-module.pl Email::MIME
/usr/bin/perl install-module.pl Email::MIME::Encodings
/usr/bin/perl install-module.pl Email::MIME::Modifier

To attempt an automatic install of every required and optional module
with one command, do:

/usr/bin/perl install-module.pl --all

*** Installation aborted. Read the messages above. ***[/code]

  1. I did the command:

And the message was:

Checking for CPAN (v1.81) ok: found v1.92 Checking for YAML (any) ok: found v0.66 CPAN: Storable loaded ok (v2.18) Going to read /home/egrigolon/.cpan/Metadata Database was generated on Thu, 16 Dec 2010 11:30:21 GMT Going to read /home/egrigolon/.cpan/build/ ............................................................................DONE Found 20 old builds, restored the state of 20 Installing Email::Send version 2.198... Running install for module 'Email::Send' Running make for R/RJ/RJBS/Email-Send-2.198.tar.gz Prepending %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/arch %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/lib %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/arch %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/lib %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/arch %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/lib %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/arch %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/lib %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/arch %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/lib %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/arch %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/lib %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/arch %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/lib %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/arch %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/lib to PERL5LIB; %BUILDDIR%=/home/egrigolon/.cpan/build for 'get' Has already been unwrapped into directory /home/egrigolon/.cpan/build/Email-Send-2.198-YG2yP4 Prepending %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/arch %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/lib %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/arch %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/lib %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/arch %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/lib %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/arch %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/lib %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/arch %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/lib %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/arch %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/lib %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/arch %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/lib %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/arch %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/lib to PERL5LIB; %BUILDDIR%=/home/egrigolon/.cpan/build for 'make' Has already been made Skipping test because of notest pragma Running make install Already tried without success

  1. I followed this steps in this page http://wiki.dreamhost.com/CPAN and this page http://search.cpan.org/~andk/CPAN-1.9402/lib/CPAN.pm#FAQ (item 11)

3.1)

3.2)

PERL5LIB=~/perlmods/lib/perl/5.x:~/perlmods/lib/perl/5.x.x PERL5LIB=$PERL5LIB:~/perlmods/share/perl/5.x:~/perlmods/share/perl/5.x.x export PERL5LIB

Check)

[alamak]$ echo $PERL5LIB /home/egrigolon/perlmods/lib/perl/5.10:/home/egrigolon/perlmods/lib/perl/5.10.0:/home/egrigolon/perlmods/share/perl/5.10:/home/egrigolon/perlmods/share/perl/5.10.0

3.3)

cpan[1]> install Email::Send CPAN: Storable loaded ok (v2.18) Going to read /home/egrigolon/.cpan/Metadata Database was generated on Thu, 16 Dec 2010 11:30:21 GMT CPAN: YAML loaded ok (v0.66) Going to read /home/egrigolon/.cpan/build/ ............................................................................DONE Found 20 old builds, restored the state of 20 Running install for module 'Email::Send' Running make for R/RJ/RJBS/Email-Send-2.198.tar.gz Prepending %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/arch %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/lib %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/arch %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/lib %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/arch %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/lib %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/arch %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/lib %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/arch %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/lib %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/arch %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/lib %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/arch %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/lib %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/arch %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/lib to PERL5LIB; %BUILDDIR%=/home/egrigolon/.cpan/build for 'get' Has already been unwrapped into directory /home/egrigolon/.cpan/build/Email-Send-2.198-YG2yP4 Prepending %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/arch %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/lib %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/arch %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/lib %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/arch %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/lib %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/arch %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/lib %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/arch %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/lib %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/arch %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/lib %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/arch %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/lib %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/arch %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/lib to PERL5LIB; %BUILDDIR%=/home/egrigolon/.cpan/build for 'make' Has already been made Prepending %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/arch %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/lib %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/arch %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/lib %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/arch %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/lib %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/arch %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/lib %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/arch %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/lib %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/arch %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/lib %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/arch %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/lib %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/arch %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/lib to PERL5LIB; %BUILDDIR%=/home/egrigolon/.cpan/build for 'test' Running make test Has already been tested successfully Running make install Already tried without success

and

[code]cpan[2]> force install Email::Send
Running install for module 'Email::Send’
Running make for R/RJ/RJBS/Email-Send-2.198.tar.gz
Prepending %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/arch %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/lib %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/arch %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/lib %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/arch %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/lib %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/arch %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/lib %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/arch %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/lib %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/arch %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/lib %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/arch %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/lib %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/arch %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/lib to PERL5LIB; %BUILDDIR%=/home/egrigolon/.cpan/build for 'get’
Has already been unwrapped into directory /home/egrigolon/.cpan/build/Email-Send-2.198-YG2yP4
Prepending %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/arch %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/lib %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/arch %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/lib %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/arch %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/lib %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/arch %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/lib %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/arch %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/lib %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/arch %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/lib %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/arch %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/lib %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/arch %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/lib to PERL5LIB; %BUILDDIR%=/home/egrigolon/.cpan/build for 'make’
Has already been made
Prepending %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/arch %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/lib %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/arch %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/lib %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/arch %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/lib %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/arch %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/lib %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/arch %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/lib %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/arch %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/lib %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/arch %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/lib %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/arch %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/lib to PERL5LIB; %BUILDDIR%=/home/egrigolon/.cpan/build for 'test’
Running make test
Has already been tested successfully
Running make install
Prepending %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/arch %BUILDDIR%/Email-MIME-1.906-Ol6Eg3/blib/lib %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/arch %BUILDDIR%/Email-MIME-ContentType-1.015-XwJguA/blib/lib %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/arch %BUILDDIR%/Email-MIME-Encodings-1.313-KvLWV1/blib/lib %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/arch %BUILDDIR%/Test-Simple-0.96-slaI5O/blib/lib %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/arch %BUILDDIR%/Email-MessageID-1.402-X6MqXf/blib/lib %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/arch %BUILDDIR%/Email-Send-2.198-YG2yP4/blib/lib %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/arch %BUILDDIR%/Email-Simple-2.100-EDFKz7/blib/lib %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/arch %BUILDDIR%/Return-Value-1.666001-OTkrue/blib/lib to PERL5LIB; %BUILDDIR%=/home/egrigolon/.cpan/build for ‘install’
!!!
ERROR: Can’t create '/usr/local/man/man3’
mkdir /usr/local/man/man3: Permission denied at /usr/share/perl/5.10/ExtUtils/Install.pm line 479

!!!
at -e line 1
make: *** [pure_site_install] Error 13
RJBS/Email-Send-2.198.tar.gz
/usr/bin/make install – NOT OK
Failed during this command:
RJBS/Email-Send-2.198.tar.gz : install NO[/code]

[code]cpan[3]> look Email::Send
Running look for module ‘Email::Send’

Trying to open a subshell in the build directory…
Working directory is /home/egrigolon/.cpan/build/Email-Send-2.198-YG2yP4[/code]

[code][alamak]$ make install Email::Send
!!!
ERROR: Can’t create '/usr/local/man/man3’
mkdir /usr/local/man/man3: Permission denied at /usr/share/perl/5.10/ExtUtils/Install.pm line 479

!!!
at -e line 1
make: *** [pure_site_install] Error 13[/code]

The same thing happens with the other modules. How can I make this work on my server? I don’t have the proper permissions to install the PERL modules, and Dreamhost’s support team tells me that they can do nothing.

Please help!
Thanks,
egrigolon


#2

I need to write up a how-to at some point, but briefly, your best bet is to use cpanminus (App::cpanminus) to install Perl modules. It’s got logic built in for installing to your home directory, and it runs faster and uses much less memory than CPAN.