nonroot installation instructions tell you to modify files that don't exist

RESOLVED FIXED in Bugzilla 3.2



11 years ago
11 years ago


(Reporter: justdave, Assigned: sam.folkwilliams)


Bugzilla 3.2
Bug Flags:
needsinfo +




(1 attachment)

If you had to install Perl modules as a non-root user (Section 2.6.4) 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 processmail syncshadowdb

a), processmail, and syncshadowdb no longer exist, and haven't, in a few versions.

b) If you copy/paste that code directly, it won't work without a \ added on the end of the first two lines.

Comment 1

11 years ago
Dave - do you know what files *do* need to be modified, if any? Or should we just take this out?
Flags: needsinfo?(justdave)
pm files don't need to be touched, and there are no executable files left that don't have suffixes.  It should be safe to just do .cgi and .pl files.  And I'd include the dot.

perl -pi -e \
   's@use strict\;@use strict\; use lib \"/home/foo/perl/lib\"\;@' *.cgi *.pl
Flags: needsinfo?(justdave)
14:31:43 <@LpSolit> errr... justdave, wait
14:31:50 <@LpSolit> we now have ./lib/
14:31:59 <@LpSolit> all scripts look into it
14:32:03 <@LpSolit> no need to change anything
14:32:39 <@justdave> ah, just have to tell cpan to install there then
14:32:57 <@justdave> or use that installer thingie mkanat cooked up
14:33:21 <@LpSolit> justdave: bug 399954
14:33:21 <+bugbot> Bug Installation & Upgrading, enhancement, --, Bugzilla 3.2,, RESOLVED FIXED, Make Bugzilla able to hold its dependencies in a local directory


11 years ago
Depends on: 413273

Comment 4

11 years ago
max - with the script, does that basically replace the non-root perl installation process described here:

Or do we still need to tell CPAN where to install the modules or install a separate perl in $HOME?
Assignee: documentation → sam.folkwilliams
No longer depends on: 413273
Flags: needsinfo?(mkanat)


11 years ago


11 years ago
Depends on: 413273
It replaces those instructions entirely and nobody should ever have to do a manual nonroot CPAN installation anymore.
Flags: needsinfo?(mkanat) → needsinfo+

Comment 6

11 years ago only exists in 3.2, so I don't think we want to update the doc in older versions. Dave, as you reported the bug, is that fine for you?
Target Milestone: --- → Bugzilla 3.2

Comment 7

11 years ago
Created attachment 298689 [details] [diff] [review]
draft 1

This might be too drastic - took out the cpan stuff and simplified this down to running the script (and providing link to its documentation).

Also fixed some formatting problems. 

Attachment #298689 - Flags: review?(documentation)
I don't think there is, but someone else might thing there is merit in the 'install your own personal version of perl' bit... If there isn't, then it's fine with me as is, if there is then it needs that reinstating.
I'm sure there's documentation elsewhere on the Internet about how to install your own version of Perl--we don't have to duplicate that information here.
Comment on attachment 298689 [details] [diff] [review]
draft 1

r=me (inspection) based on my previous comment and MAx.
Attachment #298689 - Flags: review?(documentation) → review+

Comment 11

11 years ago
No answer from justdave about my question in comment 6. So considering this bug as fixed:

Checking in docs/xml/installation.xml;
/cvsroot/mozilla/webtools/bugzilla/docs/xml/installation.xml,v  <--  installation.xml
new revision: 1.151; previous revision: 1.150
Last Resolved: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.