Under UNIX, Scmbug is available in the form of Debian and RPM packages. The provided packages are:
scmbug-common: common libraries.
scmbug-doc: documentation.
scmbug-tools: tools that can install the integration glue in an SCM repository and enhance the experience of integrating SCM with bug-tracking.
scmbug-server: the integration daemon.
Under Windows, the entire Scmbug system is available in the form of a single .zip file. It must be manually installed in C:/Program Files/Scmbug. It requires ActiveState ActivePerl installed in C:/Perl/bin/perl, and a temporary directory called C:/Temp.
Source code distributions are also available. Figure 8-1 shows how the system can be configured and installed from source. It is possible to choose a different destination of the libraries and binaries of Scmbug both in UNIX and Windows systems at configuration time. If you are configuring from source code, running './configure --help' can provide more information.
Figure 8-1. Installation of the system from source.
bash$ ./configure
bash$ make
bash$ su
bash# make install-common
bash# make install-doc
bash# make install-tools
bash# make install-server
![]() | Installing all these packages will NOT automatically integrate an SCM repository with a bug-tracking system. It will only install the basic software needed to do so. A user must configure the Integration Daemon and start it as shown in Figure 8-2. Then, a user must run the Glue Installer to install the Scmbug integration in an SCM repository. |
Installation of documentation, including this manual, requires installing the package scmbug-doc.
Installation of the Integration Tools requires installing the packages scmbug-common and scmbug-tools.
Installation of the daemon requires installing the packages scmbug-common and scmbug-server. Additionally, it requires installing the Mail::Sendmail and XML::Simple Perl modules, as shown in Figure 8-3.
Figure 8-3. Mail::Sendmail, XML::Simple installation.
Installation in UNIX systems:
bash$ su
bash# perl -MCPAN -e "install Mail::Sendmail"
bash# perl -MCPAN -e "install XML::Simple"
Installation in Windows systems:
C:\> ppm
PPM - Programmer's Package Manager version 3.1.
Copyright (c) 2001 ActiveState Corp. All Rights Reserved.
ActiveState is a devision of Sophos.
Entering interactive shell. Using Term::ReadLine::Stub as readline library.
Type 'help' to get started.
ppm> install Mail-Sendmail
ppm> install XML-Simple
The file /etc/scmbug/daemon.conf holds the configuration of the daemon.
Integration with multiple bug-tracking systems can be accomplished by starting multiple daemons listening at different ports.
For reasons explained in Section 6.1, the integration daemon requires local presence of the source code used to run a Bugzilla instance. It also requires access to the MySQL database used to store Bugzilla's data. It is recommended that the daemon is installed on the same machine Bugzilla runs, but this is not required. If the daemon is installed on the same machine Bugzilla runs, Scmbug will force the Bugzilla version cache (which is a local file) to be regenerated when activity_tag integration requests are processed.
Integration with Mantis requires access to the database used to store Mantis' data. At a minimum, it requires installing the DBI Perl module, as shown in Figure 8-4.
Figure 8-4. DBI installation.
Installation in UNIX systems:
bash$ su
bash# perl -MCPAN -e "install DBI"
Installation in Windows systems:
C:\> ppm
PPM - Programmer's Package Manager version 3.1.
Copyright (c) 2001 ActiveState Corp. All Rights Reserved.
ActiveState is a devision of Sophos.
Entering interactive shell. Using Term::ReadLine::Stub as readline library.
Type 'help' to get started.
ppm> install DBI
Figure 8-5. DBD::mysql installation.
Installation in UNIX systems:
bash$ su
bash# perl -MCPAN -e "install DBD::mysql"
Installation in Windows systems:
C:\> ppm
PPM - Programmer's Package Manager version 3.1.
Copyright (c) 2001 ActiveState Corp. All Rights Reserved.
ActiveState is a devision of Sophos.
Entering interactive shell. Using Term::ReadLine::Stub as readline library.
Type 'help' to get started.
ppm> install DBD-mysql