RSS

(root)/bugzilla/4.0 : 2107 : docs/sgml/faq.sgml

To get this branch, use:
bzr branch /bugzilla/4.0

« back to all changes in this revision

Viewing changes to docs/sgml/faq.sgml

jake%bugzilla.org
2003-03-27 00:06:37
Revision ID: cvs-1:jakebugzilla.org-20030327080637-gx430s1kddkhm8on
Bug 196433 - Bugzilla now uses /usr/bin/perl as the shebang line
r=justdave
a=justdave

Show diffs side-by-side

added added

removed removed

204
204
      <qandaentry>
205
205
        <question id="faq-general-bonsaitools">
206
206
          <para>
207
 
            Why do the scripts say "/usr/bonsaitools/bin/perl" instead of
208
 
            "/usr/bin/perl" or something else?
 
207
            What is <filename>/usr/bonsaitools/bin/perl</filename>?
209
208
          </para>
210
209
        </question>
211
210
        <answer>
212
211
          <para>
213
 
             Mozilla.org uses /usr/bonsaitools/bin/perl, because originally
214
 
       Terry wanted a place to put a version of Perl and other tools 
215
 
       that was strictly under his control. 
216
 
    </para>
217
 
                <para>
218
 
                  We always recommend that, if possible, you keep the path
219
 
                  as /usr/bonsaitools/bin/perl, and simply add symlink.  
220
 
      This will make upgrading
221
 
                  your Bugzilla much easier in the future.
222
 
                </para>
 
212
            Bugzilla used to have the path to perl on the shebang line set to
 
213
            <filename>/usr/bonsaitools/bin/perl</filename> because when
 
214
            Terry first started writing the code for mozilla.org he needed a
 
215
            version of Perl and other tools that were completely under his
 
216
            control.  This location was abandoned for the 2.18 release in favor
 
217
            of the more sensible <filename>/usr/bin/perl</filename>.  If you
 
218
            installed an older verion of Bugzilla and created the symlink we
 
219
            suggested, you can remove it now (provided that you don't have
 
220
            anything else, such as Bonsai, using it and you don't intend to
 
221
            reinstall an older version of Bugzilla).
 
222
          </para>
223
223
        </answer>
224
224
      </qandaentry>
225
225
 
 
226
      <qandaentry>
 
227
        <question id="faq-general-perlpath">
 
228
          <para>
 
229
            My perl is not located at <filename>/usr/bin/perl</filename>, is
 
230
            there an easy way to change it everywhere it needs to be changed?
 
231
          </para>
 
232
        </question>
 
233
        <answer>
 
234
          <para>
 
235
            Yes, the following bit of perl magic will change all the shebang
 
236
            lines.  Be sure to change <filename>/usr/local/bin/perl</filename>
 
237
            to your path to the perl binary.
 
238
          </para>
 
239
          <programlisting>
 
240
perl -pi -e 's@#\!/usr/bin/perl@#\!/usr/local/bin/perl@' *cgi *pl
 
241
          </programlisting>
 
242
        </answer>
 
243
      </qandaentry>
226
244
 
227
245
      <qandaentry>
228
246
        <question id="faq-general-cookie">

Loggerhead 1.18.1 is a web-based interface for Bazaar branches