From 8d59b1ca31353b6dc68c3eae7005687c49a11f8f Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 25 Jan 2008 04:06:10 +0000 Subject: Bug 399823: Fix the documentation about installing missing Perl packages when you are not root - Patch by Sam Folk-Williams r=Colin --- docs/xml/installation.xml | 172 ++++++---------------------------------------- 1 file changed, 22 insertions(+), 150 deletions(-) (limited to 'docs/xml') diff --git a/docs/xml/installation.xml b/docs/xml/installation.xml index 389fb6172..1e161db41 100644 --- a/docs/xml/installation.xml +++ b/docs/xml/installation.xml @@ -1,5 +1,5 @@ - + Installing Bugzilla @@ -2152,10 +2152,12 @@ pid-file=/home/foo/mymysql/the.pid
Perl - On the extremely rare chance that you don't have Perl on + + On the extremely rare chance that you don't have Perl on the machine, you will have to build the sources yourself. The following commands should get your system - installed with your own personal version of Perl: + installed with your own personal version of Perl: + bash$ @@ -2170,139 +2172,23 @@ pid-file=/home/foo/mymysql/the.pid make && make test && make install - Once you have Perl installed into a directory (probably - in ~/perl/bin), you'll have to - change the locations on the scripts, which is detailed later on - this page. + + Once you have Perl installed into a directory (probably + in ~/perl/bin), you will need to + install the Perl Modules, described below. +
Perl Modules - Installing the Perl modules as a non-root user is probably the - hardest part of the process. There are two different methods: a - completely independant Perl with its own modules, or personal - modules using the current (root installed) version of Perl. The - independant method takes up quite a bit of disk space, but is - less complex, while the mixed method only uses as much space as the - modules themselves, but takes more work to setup. - -
- The Independant Method - - The independant method requires that you install your own - personal version of Perl, as detailed in the previous section. Once - installed, you can start the CPAN shell with the following - command: - - - - bash$ - /home/foo/perl/bin/perl -MCPAN -e 'shell' - - - - And then: - - - - cpan> - install Bundle::Bugzilla - - - - With this method, module installation will usually go a lot - smoother, but if you have any hang-ups, you can consult the next - section. -
- -
- The Mixed Method - - First, you'll need to configure CPAN to - install modules in your home directory. The CPAN FAQ says the - following on this issue: - - - -5) I am not root, how can I install a module in a personal directory? - - You will most probably like something like this: - - o conf makepl_arg "LIB=~/myperl/lib \ - INSTALLMAN1DIR=~/myperl/man/man1 \ - INSTALLMAN3DIR=~/myperl/man/man3" - install Sybase::Sybperl - - You can make this setting permanent like all "o conf" settings with "o conf commit". - - You will have to add ~/myperl/man to the MANPATH environment variable and also tell your Perl programs to - look into ~/myperl/lib, e.g. by including - - use lib "$ENV{HOME}/myperl/lib"; - - or setting the PERL5LIB environment variable. - - Another thing you should bear in mind is that the UNINST parameter should never be set if you are not root. - - - So, you will need to create a Perl directory in your home - directory, as well as the lib, - man, - man/man1, and - man/man3 directories in that - Perl directory. Set the MANPATH variable and PERL5LIB variable, so - that the installation of the modules goes smoother. (Setting - UNINST=0 in your "make install" options, on the CPAN first-time - configuration, is also a good idea.) - - After that, go into the CPAN shell: - - - - bash$ - perl -MCPAN -e 'shell' - - - - From there, you will need to type in the above "o conf" command - and commit the changes. Then you can run through the installation: - - - - cpan> - install Bundle::Bugzilla - - - - Most of the module installation process should go smoothly. However, - you may have some problems with Template. When you first start, you will - want to try to install Template with the XS Stash options on. If this - doesn't work, it may spit out C compiler error messages and croak back - to the CPAN shell prompt. So, redo the install, and turn it off. (In fact, - say no to all of the Template questions.) It may also start failing on a - few of the tests. If the total tests passed is a reasonable figure (90+%), - force the install with the following command: - - - - cpan> - force install Template - - - - You may also want to install the other optional modules: - - - cpan> - install GD - cpan> - install Chart::Base - cpan> - install MIME::Parser - - -
+ + Installing the Perl modules as a non-root user is accomplished by + running the install-module.pl + script. For more details on this script, see + . + +
@@ -2347,30 +2233,16 @@ pid-file=/home/foo/mymysql/the.pid
Bugzilla - If you had to install Perl modules as a non-root user - () or to non-standard - directories, you will need to change the scripts, setting the correct - location of the Perl modules: - - perl -pi -e - 's@use strict\;@use strict\; use lib \"/home/foo/perl/lib\"\;@' - *cgi *pl Bug.pm processmail syncshadowdb - - Change /home/foo/perl/lib to - your personal Perl library directory. You can probably skip this - step if you are using the independant method of Perl module - installation. - - - When you run ./checksetup.pl to create + When you run ./checksetup.pl to create the localconfig file, it will list the Perl modules it finds. If one is missing, go back and double-check the - module installation from the CPAN shell, then delete the - localconfig file and try again. + module installation from , + then delete the localconfig file and try again. + - The one option in localconfig you + One option in localconfig you might have problems with is the web server group. If you can't successfully browse to the index.cgi (like a Forbidden error), you may have to relax your permissions, -- cgit v1.2.3-24-g4f1b