Closed Bug 208521 Opened 21 years ago Closed 15 years ago

Win32, cygwin, install notes

Categories

(Bugzilla :: Documentation, defect)

2.17.4
x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: jpyeron, Unassigned)

References

()

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; .NET CLR 1.0.3705)
Build Identifier: 

I have been working on [j]Bugzilla on my laptop, I think my notes might be
of use to the Bugzilla win32 project documentation.

All in all, it was a breeze to install [the second time]. That is there are no
changes to the Bugzilla source!

This information is for cygwin posix subsystem ONLY.
http://cygwin.com/setup.exe [assumed c:\cygwin is the install dir]

Mysql:

 installed mysql 3.23.49-nt (long time ago)

 ./configure --without-server --prefix=/usr/local/mysql
 make install
 I put the mysql bin directory in the PATH.

DBD::mysql:

 perl -MCPAN -e 'install "DBD::mysql"' fails with cflags and libs whining

 download the source for linux, compile under cygwin. the above put it
 in c:\.cpan\build\DBD-mysql-2.1026

 perl Makefile.PL --libs="-L/usr/local/mysql/lib/mysql -lmysqlclient -lz" \
                  --cflags=-I/usr/local/mysql/include/mysql \
                  --testhost=127.0.0.1
 make install

sendmail:

 there is an issue since my system does not have sendmail on it...
 ??? can exim or ssmtp work, how would they be linked in ???

libgd / GD

  ??? cygwin does not appear to come with libgd, a quick google search listed
  messages about problems trying to compile it, I have not even fetched the
  source ???

  GD (and dependent packages)
   N/NI/NINJAZ/Chart-0.99b.tar.gz
   GD::Graph
   GD::Text::Align

  could not be installed

IIS 5.0:

 see http://support.microsoft.com/support/kb/articles/Q245/2/25.ASP

 .pl c:\cygwin\bin\perl.exe -T %s %s
 .cgi c:\cygwin\bin\perl.exe -T %s %s

localconfig:

 $webservergroup
  ??? I have set this to the empty string, too lazy to investigate which 
setting to
  use. ???

 $db_host
  I have set this to 127.0.0.1 since setting to 'localhost' causes mysql to try
  to use local socket '/tmp/mysql.sock' and 3.23.49-nt does not support this.
  It fails with:
   Can't connect to local MySQL server through socket '/tmp/mysql.sock'

checksetup:
 runs very well
 see output...

C:\usr\jpyeron\proj\jBugzilla\Bugzilla\tip>checksetup.pl

Checking perl modules ...
Checking for       AppConfig (v1.52)   ok: found v1.52
Checking for             CGI (v2.93)   ok: found v2.93
Checking for    Data::Dumper (any)     ok: found v2.12
Checking for    Date::Format (v2.21)   ok: found v2.22
Checking for             DBI (v1.32)   ok: found v1.35
Checking for      DBD::mysql (v2.1010) ok: found v2.1026
Checking for      File::Spec (v0.82)   ok: found v0.83
Checking for      File::Temp (any)     ok: found v0.13
Checking for        Template (v2.08)   ok: found v2.09
Checking for      Text::Wrap (v2001.0131) ok: found v2001.0929

The following Perl modules are optional:
Checking for              GD (v1.20)    not found
Checking for     Chart::Base (v0.99)    not found
Checking for     XML::Parser (any)     ok: found v2.31
Checking for       GD::Graph (any)      not found
Checking for GD::Text::Align (any)      not found

If you you want to see graphical bug charts (plotting historical data over
time), you should install libgd and the following Perl modules:

GD:          perl -MCPAN -e'install "GD"'
Chart 0.99b: perl -MCPAN -e'install "N/NI/NINJAZ/Chart-0.99b.tar.gz"'

If you you want to see graphical bug reports (bar, pie and line charts of
current data), you should install libgd and the following Perl modules:

GD:              perl -MCPAN -e'install "GD"'
GD::Graph:       perl -MCPAN -e'install "GD::Graph"'
GD::Text::Align: perl -MCPAN -e'install "GD::Text::Align"'

Checking user setup ...

********************************************************************************
WARNING! You have not entered a value for the "webservergroup" parameter
in localconfig. This means that certain files and directories which need
to be editable by both you and the webserver must be world writable, and
other files (including the localconfig file which stores your database
password) must be world readable. This means that _anyone_ who can obtain
local access to this machine can do whatever they want to your Bugzilla
installation, and is probably also able to run arbitrary Perl code as the
user that the webserver runs as.

You really, really, really need to change this setting.
********************************************************************************

Removing existing compiled templates ...
Precompiling templates ...
Precompiling templates ...
Checking for    MySQL Server (v3.23.41) ok: found v3.23.49-nt

Populating duplicates table...
Reminder: Bugzilla now requires version 8.7 or later of sendmail.




Reproducible: Always

Steps to Reproduce:
Version: unspecified → 2.17.4
Blocks: 207042
is there someone who is willing to test these procedures?
Not sure if flags=? is the right way to get the ball rolling?
Flags: approval?
No, it's not... the Aproval flag is to request permission to check in a patch
that has already been attached and reviewed.

When you say jBugzilla, do you mean your Java port? Do you know if these
instructions work for the default Bugzilla, or is that what you're asking?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: approval?
these instructions are for Bugzilla 2.17.4

I will be testing then on Bugzilla Stable (2.16.3?)

yes, jBugzilla is my company's java port.
Jake is leaving for a while (Reserve unit got called up), and we don't have a
new docs owner yet.  Anyone interested in helping out, please add
documentation@bugzilla.org to your watch list in your email preferences in Bugzilla.
Assignee: jake → documentation
Preliminarily moving all docs bugs to 2.18, we should make a valiant attempt to
have the docs as up-to-date as possible when 2.18 releases.
Target Milestone: --- → Bugzilla 2.18
*** Bug 207042 has been marked as a duplicate of this bug. ***
given that bugzilla no longer requires cygwin to run on windows, i suggest that
we WONTFIX this bug
I don't get what you mean by cygwin is not required so "wontfix"

bz never required cygwin, but it also never required ACTIVESTATE perl

the point is that there are two very distinct install methods for win32

cygwin is the one we use here since AS Perl has too many incompatibities with 
linux distros
QA Contact: mattyt-bugzilla → default-qa
Target Milestone: Bugzilla 2.18 → Bugzilla 2.20
(In reply to comment #8)
> cygwin is the one we use here since AS Perl has too many incompatibities with 
> linux distros

What kind of incompatibilities? Personally, I wouldn't install Bugzilla on Windows using Cygwin.
Bugzilla 2.20 is no longer supported. Retargetting to 2.22.
Target Milestone: Bugzilla 2.20 → Bugzilla 2.22
Bugzilla 2.22 is no longer supported.
Target Milestone: Bugzilla 2.22 → ---
Nowadays, I wouldn't recommend installing Bugzilla on Windows using Cygwin. ActiveState does a very good job, and PPM allows us to install Perl modules very easily. Probably very few admins are still using Cygwin to run Bugzilla, and installation notes specific to Cygwin should go on wiki, probably in the FAQ: https://wiki.mozilla.org/Bugzilla:FAQ
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Curious, why is it not recommended? We do, and our clients do (including the US government).

Won’t fix is fine by me, just wanted a better clarification.
Performance issues and support issues, mostly. Our "supported" Windows config is ActiveState. Cygwin, in modern times (post-2.18) would be considered "unsupported" by the Bugzilla Project.
You need to log in before you can comment on or make changes to this bug.